Package Data | |
---|---|
Maintainer Username: | jsiebach |
Maintainer Contact: | jeff@jeffsiebach.com (Jeff Siebach) |
Package Create Date: | 2016-02-10 |
Package Last Update: | 2016-04-06 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-25 15:03:35 |
Package Statistics | |
---|---|
Total Downloads: | 796 |
Monthly Downloads: | 47 |
Daily Downloads: | 13 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
A service provider for using CheddarGetter in Laravel.
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
"require": {
"jsiebach/laravel-cheddar": "^1.0"
}
Run composer update
Add \JSiebach\Cheddar\CheddarServiceProvider::class
to your array of service providers in /config/app.php
Run php artisan vendor:publish
to create the config file
In /config/cheddar.php
, add your credentials for Cheddar Getter.
You can now use dependency-injection to load a CheddarGetter_Client with your credentials automatically set. In any controller:
Class PaymentController extends Controller {
public $client;
__construct(CheddarGetter_Client $client){
$this->client = $client;
}
public function customerList(){
$response = $this->client->getAllCustomers();
//handle response...
}
}