jsiebach/laravel-cheddar
Composer 安装命令:
composer require jsiebach/laravel-cheddar
包简介
An unofficial service provider for using CheddarGetter in Laravel
关键字:
README 文档
README
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
Set Up
- Add this package to your composer.json -
"require": {
"jsiebach/laravel-cheddar": "^1.0"
}
-
Run
composer update -
Add
\JSiebach\Cheddar\CheddarServiceProvider::classto your array of service providers in/config/app.php -
Run
php artisan vendor:publishto create the config file -
In
/config/cheddar.php, add your credentials for Cheddar Getter.
Usage
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...
}
}
统计信息
- 总下载量: 1.38k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-10