Skip to content

Commit

Permalink
added recommended community files
Browse files Browse the repository at this point in the history
  • Loading branch information
mayoz committed Feb 24, 2018
1 parent 88f27c1 commit e7f2834
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 3 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Release Notes

All important changes will be documented in this file.

## v1.0.0 (2018-02-24)

- Initial release

## v1.0.1 (2018-02-25)

- Use unsigned integer to user_id column ([941ce78](https://github.com/mayoz/laravel-tokens/commit/941ce78b56412c9bec65fdc402e6dc3703ad82b8))
- Added custom token generator ([88f27c1](https://github.com/mayoz/laravel-tokens/commit/88f27c1342b3db529e1b992e35889b9da9650daa))
53 changes: 53 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Contribution Guide

Contributions are welcome, and are accepted via pull requests. Please review these guidelines before submitting any pull requests.

## Etiquette

This project is open source, and as such, the maintainers give their free time to build and maintain the source code
held within. They make the code freely available in the hope that it will be of use to other developers. It would be
extremely unfair for them to suffer abuse or anger for their hard work.

Please be considerate towards maintainers when raising issues or presenting pull requests. Let's show the
world that developers are civilized and selfless people.

It's the duty of the maintainer to ensure that all submissions to the project are of sufficient
quality to benefit the project. Many developers have different skillsets, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used.

## Viability

When requesting or submitting new features, first consider whether it might be useful to others. Open
source projects are used by many developers, who may have entirely different needs to your own. Think about
whether or not your feature is likely to be used by other users of the project.

## Procedure

Before filing an issue:

- Attempt to replicate the problem, to ensure that it wasn't a coincidental incident.
- Check to make sure your feature suggestion isn't already present within the project.
- Check the pull requests tab to ensure that the bug doesn't have a fix in progress.
- Check the pull requests tab to ensure that the feature isn't already in progress.

Before submitting a pull request:

- Check the codebase to ensure that your feature doesn't already exist.
- Check the pull requests to ensure that another person hasn't already submitted the feature or fix.

## Requirements

If the project maintainer has any additional requirements, you will find them listed here.

- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer).

- **Add tests!** - Your patch won't be accepted if it doesn't have tests.

- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.

- **Consider our release cycle** - We try to follow [semver](http://semver.org/). Randomly breaking public APIs is not an option.

- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.

- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.

**Happy coding**!
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ This package provides a simple solution for give multiple token to your applicat

This package is for Laravel 5.5 and above.


## Installation

You can install the package via composer using:
Expand Down Expand Up @@ -50,7 +49,6 @@ php artisan vendor:publish --provider="Mayoz\Token\TokenServiceProvider" --tag="

If you need you are free to change your `config` file.


## Implementation

After installation, you can implement the new feature for your application.
Expand Down Expand Up @@ -98,7 +96,6 @@ And finally, you will add the new guard to your application. Open the `config/au

Congratulations!


## Usage

When you need it (after login or any actions later), use the helper function to create a new token.
Expand Down Expand Up @@ -207,3 +204,19 @@ composer require ramsey/uuid
```

Cheers.

### Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

## Security Vulnerabilities

If you discover any security related issues, please create a new issue with using the "Bug" label. All security vulnerabilities will be promptly addressed.

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

0 comments on commit e7f2834

Please sign in to comment.