Get expert guidance in a few days with a Laravel code review

Jwt Auth

php-open-source-saver/jwt-auth image

Jwt Auth stats

Downloads
2.6M
Stars
619
Open Issues
15
Forks
94

View on GitHub →

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-auth to 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

  1. Remove the old package:

    composer remove tymon/jwt-auth

    (Ignore any error that appears regarding the package still being in use.)

  2. Replace all occurrences of Tymon\JWTAuth with PHPOpenSourceSaver\JWTAuth using your IDE's Find and Replace feature.

  3. 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, JWTGuard has 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.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Php Open Source Saver Jwt Auth Related Articles

Building a Kanban Board with Laravel and Vue.Draggable image

Building a Kanban Board with Laravel and Vue.Draggable

Read article
Building your own Laravel Packages image

Building your own Laravel Packages

Read article
A New Major Version of Ignition Debuts in Laravel 9 image

A New Major Version of Ignition Debuts in Laravel 9

Read article
Laravel Holiday Giveaway image

Laravel Holiday Giveaway

Read article
Minimalist Sublime Text 3 Setup for PHP image

Minimalist Sublime Text 3 Setup for PHP

Read article
Sending a daily email with Laravel and Campaign Monitor image

Sending a daily email with Laravel and Campaign Monitor

Read article
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $3200/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum