shopping/shoppi
Composer 安装命令:
composer require shopping/shoppi
包简介
Shopp!ng User Authentication Library
README 文档
README
#Shopping User Authentication Library Laravel package to help with consuming the Shopp!ng API
Laravel 4.2 and Above
You may install this package by either of the following ways:
- Through Composer -- edit your project's composer.json file to require shopping/shoppi.
Next, update Composer by running: composer update --dev
- Directly through command line, -- run
composer require shopping/shoppi:dev-master
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.
'Shopping\Shoppi\ShoppiServiceProvider'
To optionally make your experience easier, you may also add Shopping\Shoppi\Shopping to the Facades array list.
That's all! You are now set to authenticate to the Shopp!ng API.
Basic Authentication Example
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.
E.g. to login a user
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.
统计信息
- 总下载量: 74
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPLv2
- 更新时间: 2015-03-23