Jwt Auth
Jwt Auth stats
- Downloads
- 2.6M
- Stars
- 619
- Open Issues
- 15
- Forks
- 94
JSON Web Token Authentication for Laravel and Lumen
PHPOpenSourceSaver/jwt-auth Package Summary
The php-open-source-saver/jwt-auth is a robust Laravel package designed for handling JWT (JSON Web Token) authentication. It emerges as an independent fork from the previously popular tymondesigns/jwt-auth due to the latter's lack of recent updates. This package aims to provide an updated and supported solution for developers needing JWT authentication in their Laravel applications.
Key Features
- Ease of Migration: Transitioning from
tymondesigns/jwt-authto this package is streamlined. Developers can easily replace the namespace in their codebase, ensuring a smooth migration process. - Compatibility: Maintains the same API as the original, making it easy to integrate with existing Laravel applications.
- Enhanced Support and Updates: As an independent fork, this package offers continued support and updates, addressing the stagnation issues of the original repository.
Installation and Usage
-
Remove the old package:
composer remove tymon/jwt-auth(Ignore any error that appears regarding the package still being in use.)
-
Replace all occurrences of
Tymon\JWTAuthwithPHPOpenSourceSaver\JWTAuthusing your IDE's Find and Replace feature. -
Install the new package:
composer require php-open-source-saver/jwt-auth
Important Notes
- While the API remains similar, some new features and changes might introduce minor compatibility issues, especially if autodiscovery has been disabled for the original package.
- Notably,
JWTGuardhas a new required constructor parameter$eventDispatcher, which may affect existing implementations.
Documentation and Support
Complete and detailed documentation is available at laravel-jwt-auth.readthedocs.io. For security-related issues, please refer to the package's security policy.
This package is ideal for developers looking for a maintained and up-to-date JWT authentication solution for their Laravel applications, offering a straightforward migration path from the original tymondesigns/jwt-auth package.