jsiebach/laravel-cheddar 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

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

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

  3. Run php artisan vendor:publish to create the config file

  4. 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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-02-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固