dev-master
9999999-devShopp!ng User Authentication Library
GPLv2
The Requires
- php >=5.4.0
- illuminate/support 4.2.*
Shopp!ng User Authentication Library
Laravel package to help with consuming the Shopp!ng API, (*1)
You may install this package by either of the following ways:, (*2)
Through Composer -- edit your project's composer.json file to require shopping/shoppi., (*3)
Next, update Composer by running: composer update --dev
, (*4)
Directly through command line, -- run composer require shopping/shoppi:dev-master
, (*5)
Once the operation completes, the final step is to add the service provider. Open app/config/app.php, and add a new item to the providers array., (*6)
'Shopping\Shoppi\ShoppiServiceProvider'
To optionally make your experience easier, you may also add Shopping\Shoppi\Shopping
to the Facades array list., (*7)
That's all! You are now set to authenticate to the Shopp!ng API., (*8)
To authenticate a user, it is required that you supply a username and password that the user will be authenticated with.
This may be flashed to the Session with the password encrypted internally using Laravel Bcrypt class or sent directly to the Shopping::authenticate
method., (*9)
E.g. to login a user, (*10)
if(Shopping::authenticate($email, $password)) { dd(Session::get('apiUser'); }
The above code should dump the user's detail as stored in the session after API authentication., (*11)
Shopp!ng User Authentication Library
GPLv2