定制 shopping/shoppi 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  1. Through Composer -- edit your project's composer.json file to require shopping/shoppi.

Next, update Composer by running: composer update --dev

  1. 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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPLv2
  • 更新时间: 2015-03-23