定制 koren-software/erplybooks-api-php-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

koren-software/erplybooks-api-php-client

最新稳定版本:0.3.0

Composer 安装命令:

composer require koren-software/erplybooks-api-php-client

包简介

PHP Client to interact with Erply Books API

README 文档

README

Actions Status Coverage Status Latest Stable Version Total Downloads License

Erply Books API PHP client

Install

composer require koren-software/erplybooks-api-php-client

Usage

$token = ''; // Set your API token
$client = new Koren\ErplyBooks\Client($token);

Get many

$response = $client->Invoices()->get(); // Koren\ErplyBooks\Response\ItemsResponse

Get by ID

$response = $client->Invoices()->get(1); // Koren\ErplyBooks\Response\ItemResponse

Predefined interfaces used

$invoices = $client->Invoices()->get(); // Koren\ErplyBooks\Response\ItemsResponse

// Items response is iterable
foreach ($invoices as $invoice) {
    // Do something with $invoice
}

// Responses are jsonable
$json = json_decode($response); // json string of all items or item

// Responses are countable
$count = count($response); // integer (how many items were in response)

Development

  • composer build - build by running tests and all code checks
  • composer test - run PHPUnit
  • composer format - format code against standards
  • composer phpcs - run PHP Codesniffer against PSR-2 standards
  • composer phpmd - run PHP Mess Detector
  • composer docs - generate docs with PHP Documentator (expects apigen/apigen installed globally cause of conflicts)

统计信息

  • 总下载量: 213
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-15