cwd/chillbill-bundle

该包已被 废弃 并不再维护。未建议替代包。

作为 Symfony Bundle 整合 Chillbill API

安装: 2

依赖者: 0

建议者: 0

安全: 0

类型:symfony-bundle

0.2.0 2018-04-03 10:24 UTC

This package is not auto-updated.

Last update: 2022-02-01 13:12:47 UTC


README

Latest Stable Version Total Downloads License

此包允许您集成 chillbill.co API

安装

composer require cwd/chillbill-bundle

添加到 AppKernel.php

[...]
new Cwd\ChillbillBundle\CwdChillbillBundle(),
[...]

或 bundels.php

[...]
Cwd\ChillbillBundle\CwdChillbillBundle::class => ['all' => true],
[...]

添加到 config.yml

cwd_chillbill:
  api_key: '123456'      

如何使用

$offset = 123; // Optional Offset
$bills = $this->get(ChillbillAdapter::class)->getBills($offset);

foreach ($bills as $bill) {
 // do something with it....
}