Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: irazasyed/jwt-auth-guard
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.2
Choose a base ref
...
head repository: irazasyed/jwt-auth-guard
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 11 commits
  • 12 files changed
  • 4 contributors

Commits on Apr 26, 2016

  1. Fixes and Update

    irazasyed committed Apr 26, 2016

    Verified

    This commit was signed with the committer’s verified signature.
    hakimifr Hakimi
    Copy the full SHA
    62b82de View commit details
  2. Update JWT Auth Version

    irazasyed committed Apr 26, 2016
    Copy the full SHA
    1c28650 View commit details
  3. Add .github and revise

    irazasyed committed Apr 26, 2016
    Copy the full SHA
    d998d73 View commit details

Commits on Apr 27, 2016

  1. Update .gitattributes

    irazasyed committed Apr 27, 2016
    Copy the full SHA
    e34b6c4 View commit details
  2. Update Service Provider

    irazasyed committed Apr 27, 2016
    Copy the full SHA
    efb6195 View commit details

Commits on May 4, 2016

  1. Copy the full SHA
    a4713b4 View commit details

Commits on Jul 25, 2017

  1. Copy the full SHA
    1c3f17f View commit details

Commits on Jul 26, 2017

  1. Merge pull request #40 from blacktemplar/master

    [FIX] JWT Guard for Lumen 5.4
    irazasyed authored Jul 26, 2017
    Copy the full SHA
    b46e134 View commit details

Commits on Jan 2, 2018

  1. Copy the full SHA
    aba0c74 View commit details

Commits on Sep 19, 2018

  1. Merge pull request #43 from iMokhles/master

    [IMPROVEMENT] Laravel 5.5 auto-discovery
    irazasyed authored Sep 19, 2018
    Copy the full SHA
    9d65fc9 View commit details

Commits on Oct 25, 2019

  1. Revise

    irazasyed authored Oct 25, 2019
    Copy the full SHA
    12e250a View commit details
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

# Ignore all test and documentation with "export-ignore".
/.github export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
File renamed without changes.
File renamed without changes.
56 changes: 56 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Contributors Guide

Please read and understand the contribution guide before creating an issue or pull request.

## 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:

- Ensure that your submission is [viable](#viability) for the project.
- 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

- **[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 v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.

- **Create feature branches** - Don't ask us to pull from your master branch.

- **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.

- **Rebase** - You may also need to [rebase](http://git-scm.com/book/en/Git-Branching-Rebasing) to avoid merge conflicts.

## Running Tests

``` bash
$ composer test
```

**Happy coding**!
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Please prefix your issue with one of the following: **[BUG]** **[PROPOSAL]** **[QUESTION]**.

**In raising this issue, I confirm the following (please check boxes):**

- [ ] I have read and understood the [contributors guide](CONTRIBUTING.md).
- [ ] I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present.
- [ ] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.

**My familiarity with the project is as follows (check one):**

- [ ] I have never used the project.
- [ ] I have used the project briefly.
- [ ] I have used the project extensively, but have not contributed previously.
- [ ] I am an active contributor to the project.

**My project stack details**

- Framework (Laravel / Lumen):
- Framework Version:
- JWT Auth Guard Version:
- `tymon/jwt-auth` Version:

---

{issue content here}
20 changes: 20 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Please prefix your pull request with one of the following: **[FEATURE]** **[FIX]** **[IMPROVEMENT]**.

**In raising this pull request, I confirm the following (please check boxes):**

- [ ] I have read and understood the [contributors guide](CONTRIBUTING.md).
- [ ] I have checked that another pull request for this purpose does not exist.
- [ ] I have considered, and confirmed that this submission will be valuable to others.
- [ ] I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
- [ ] I give this submission freely, and claim no ownership to its content.

**My familiarity with the project is as follows (check one):**

- [ ] I have never used the project.
- [ ] I have used the project briefly.
- [ ] I have used the project extensively, but have not contributed previously.
- [ ] I am an active contributor to the project.

---

{pull request content here}
31 changes: 0 additions & 31 deletions CONTRIBUTING.md

This file was deleted.

25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# JWT Auth Guard

[![Join PHP Chat][ico-phpchat]][link-phpchat]
[![Chat on Telegram][ico-telegram]][link-telegram]
[![Laravel Package][ico-laravel]][link-repo]
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Total Downloads][ico-downloads]][link-downloads]
@@ -10,7 +13,17 @@
## Requirements
- Laravel or Lumen Installation.
- [tymon/jwt-auth](https://github.com/tymondesigns/jwt-auth) Package Setup and Config'd.
- [tymon/jwt-auth](https://github.com/tymondesigns/jwt-auth) `^1.0@dev` Package Setup and Config'd.

## Pre-Installation

First install and setup [tymon/jwt-auth](https://github.com/tymondesigns/jwt-auth) package.

``` bash
$ composer require tymon/jwt-auth:^1.0@dev
```

Once done, config it and then install this package.

## Install

@@ -234,7 +247,7 @@ $payload = Auth::setToken('TokenToGetPayload')->getPayload();

## Change log

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

## Testing

@@ -244,7 +257,7 @@ $ composer test

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CONDUCT](.github/CONDUCT.md) for details.

Any issues, feedback, suggestions or questions please use issue tracker [here](https://github.com/irazasyed/jwt-auth-guard/issues).

@@ -262,13 +275,19 @@ If you discover any security related issues, please email syed+gh@lukonet.com in

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

[ico-phpchat]: https://img.shields.io/badge/Slack-PHP%20Chat-5c6aaa.svg?style=flat-square&logo=slack&labelColor=4A154B
[ico-telegram]: https://img.shields.io/badge/@PHPChatCo-2CA5E0.svg?style=flat-square&logo=telegram&label=Telegram
[ico-version]: https://img.shields.io/packagist/v/irazasyed/jwt-auth-guard.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/irazasyed/jwt-auth-guard/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/irazasyed/jwt-auth-guard.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/irazasyed/jwt-auth-guard.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/irazasyed/jwt-auth-guard.svg?style=flat-square
[ico-laravel]: https://img.shields.io/badge/Laravel-5|6-FF2D20.svg?style=flat-square&logo=laravel&labelColor=black&logoColor=white

[link-phpchat]: https://phpchat.co/?ref=jwt-auth-guard
[link-telegram]: https://t.me/PHPChatCo
[link-repo]: https://github.com/irazasyed/jwt-auth-guard
[link-packagist]: https://packagist.org/packages/irazasyed/jwt-auth-guard
[link-travis]: https://travis-ci.org/irazasyed/jwt-auth-guard
[link-scrutinizer]: https://scrutinizer-ci.com/g/irazasyed/jwt-auth-guard/code-structure
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@
"phpunit/phpunit" : "4.*",
"scrutinizer/ocular": "~1.1",
"squizlabs/php_codesniffer": "~2.3",
"tymon/jwt-auth": "0.6.*@dev"
"tymon/jwt-auth": "^1.0@dev"
},
"autoload": {
"psr-4": {
@@ -41,6 +41,11 @@
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
},
"laravel": {
"providers": [
"Irazasyed\\JwtAuthGuard\\JwtAuthGuardServiceProvider"
]
}
},
"config": {
Loading