progresivjose / laravel-piano-oauth
A laravel wrapper to progresivjose/piano-oauth package
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:CSS
Requires
- php: ^8.1
- illuminate/database: ^10.15.0
- illuminate/http: ^10.15.0
- illuminate/support: ^10.15.0
- progresivjose/piano-oauth: ^1.0
Requires (Dev)
- pestphp/pest: ^2.8
README
This package is a laravel wrapper for the progresivjose/piano-oauth package
Requirements
- PHP ^8.1
- Laravel ^10
Instalation
First you need to install the package in your laravel project
composer require progresivjose/laravel-piano-oauth -W
Then you'll need to include the provider in the config/app.php file
'providers' => ServiceProvider::defaultProviders()->merge([ /* * Application Service Providers... */ Progresivjose\LaravelPianoOauth\Providers\PianoOauthProvider::class, ])->toArray(),
After that you can run the vendor:publish to import the assets and config files.
php artisan vendor:publish
Then you must run the migration command to create the piano_users table
php artisan migrate
After that you must change the config/auth.php file and replace the App\User.php value from the providers config to \Progresivjose\LaravelPianoOauth\Models\PianoUser::class
'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => \Progresivjose\LaravelPianoOauth\Models\PianoUser::class, ], ]
And that's all you must do to use the Piano Oauth in your laravel project
Enviroment Values
The package expects the following values in your .env file
- PIANO_AID
- PIANO_API_TOKEN
- PIANO_OAUTH_CLIENT_SECRET
- PIANO_AUTH_GUARD
- PIANO_API_URL
Configuration
The package creates a confi/piano.php files, which stores all the confirgurations needed for the package, but the redirect_url value is set for sandbox and testing puposes, for production you must use https://id.tinypass.com/id