2017 © Pedro Peláez
 

library shoppi

Shopp!ng User Authentication Library

image

shopping/shoppi

Shopp!ng User Authentication Library

  • Thursday, March 26, 2015
  • by xwiz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 69 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Shopping User Authentication Library

Laravel package to help with consuming the Shopp!ng API, (*1)

Laravel 4.2 and Above

You may install this package by either of the following ways:, (*2)

  1. Through Composer -- edit your project's composer.json file to require shopping/shoppi., (*3)

    Next, update Composer by running: composer update --dev, (*4)

  2. 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)

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., (*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)

The Versions

26/03 2015

dev-master

9999999-dev

Shopp!ng User Authentication Library

  Sources   Download

GPLv2

The Requires