mkaverin / laravel-oauth2-client
Installs: 157
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/mkaverin/laravel-oauth2-client
Requires
- php: ^7.4|^8.0
- fig/http-message-util: ^1.1
- illuminate/contracts: >8.0
- illuminate/database: >8.0
- illuminate/http: >8.0
- illuminate/support: >8.0
- league/oauth2-client: ^2.6
Requires (Dev)
- orchestra/testbench: ^5.0|^6.23|^7.0
- phpunit/phpunit: ^9.5.10
This package is auto-updated.
Last update: 2025-10-04 10:39:47 UTC
README
This package is based on the PHP League OAuth 2.0 Client library, and it provides a simple interface to OAuth2 authentication for your Laravel application using any of the compatible OAuth2 providers (for example see the list of official PHP League and third-party providers or instructions on how to implement your own).
Installation
Run the following command from your project directory to add the dependency:
composer require mkaverin/laravel-oauth2-client
Then, copy and run database migrations:
php artisan vendor:publish --provider="LaravelOAuth2Client\Providers\OAuth2ServiceProvider" --tag=migrations
php artisan migrate
Laravel without auto-discovery
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
:
'providers' => [ ... LaravelOAuth2Client\Providers\OAuth2ServiceProvider::class, ],
Testing
composer test