2017 © Pedro Peláez
 

library laravel-cheddar

An unofficial service provider for using CheddarGetter in Laravel

image

jsiebach/laravel-cheddar

An unofficial service provider for using CheddarGetter in Laravel

  • Wednesday, April 6, 2016
  • by jsiebach
  • Repository
  • 1 Watchers
  • 0 Stars
  • 152 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

laravel-cheddar

A service provider for using CheddarGetter in Laravel., (*1)

This package simply provides an easy way to pull an authenticated CheddarGetter PHP Wrapper Client into your Laravel app. See the documentation for the CheddarGetter PHP Wrapper here: https://github.com/marcguyer/cheddargetter-client-php, (*2)

Set Up

  1. Add this package to your composer.json -
    "require": {
        "jsiebach/laravel-cheddar": "^1.0"
    }
  1. Run composer update, (*3)

  2. Add \JSiebach\Cheddar\CheddarServiceProvider::class to your array of service providers in /config/app.php, (*4)

  3. Run php artisan vendor:publish to create the config file, (*5)

  4. In /config/cheddar.php, add your credentials for Cheddar Getter., (*6)

Usage

You can now use dependency-injection to load a CheddarGetter_Client with your credentials automatically set. In any controller:, (*7)

Class PaymentController extends Controller {

    public $client;

    __construct(CheddarGetter_Client $client){
        $this->client = $client;
    }

    public function customerList(){

        $response = $this->client->getAllCustomers();

        //handle response...

    }

}

The Versions

06/04 2016

dev-master

9999999-dev

An unofficial service provider for using CheddarGetter in Laravel

  Sources   Download

MIT

The Requires

 

laravel cheddargetter

11/02 2016

v1.0.0

1.0.0.0

An unofficial service provider for using CheddarGetter in Laravel

  Sources   Download

MIT

The Requires

 

laravel cheddargetter