2017 © Pedro Peláez
 

library api-client

image

advanced-store/api-client

  • Tuesday, October 20, 2015
  • by dazero0
  • Repository
  • 11 Watchers
  • 0 Stars
  • 47 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

, (*1)

API Client

This package adds functionality to laravel which allows you to get user permissions through the o2client., (*2)

1. Installation

via Composer

First add the following line to your composer.json ., (*3)

"advanced-store/api-client": "dev-master", (*4)

Run this command in you CLI., (*5)

composer update, (*6)

This package will require the advanced-store/oauth2-client to work properly., (*7)

2. Configuration

Publish package config

Run the following command if you are installing for the first time., (*8)


    php artisan config:publish advanced-store/api-client

Add following lines to your app.php., (*9)

Provider


    'AdvancedStore\ApiClient\ApiClientServiceProvider',

Aliases


    'YourAlias' => 'AdvancedStore\ApiClient\Facades\ApiClientFacade',,

3. Usage

Now you can get the user permissions by calling 'YourAlias'::getUserPermissions() , (*10)

In combination with the advanced-store/access-filter package the access-filter config will be filled with the user permission as default. , (*11)

4. Methods

, (*12)

  • getUserPermissions()

The Versions

20/10 2015

dev-master

9999999-dev

  Sources   Download

Creative Commons Attribution-NonCommercial-NoDerivatives 4.0

The Requires

 

by advanced STORE GmbH

20/10 2015

dev-4.x_Stable

dev-4.x_Stable

  Sources   Download

Creative Commons Attribution-NonCommercial-NoDerivatives 4.0

The Requires

 

by advanced STORE GmbH