cwd / chillbill-bundle
该包已被 废弃 并不再维护。未建议替代包。
作为 Symfony Bundle 整合 Chillbill API
0.2.0
2018-04-03 10:24 UTC
Requires
- php: >=7.1
- guzzlehttp/guzzle: ^6.3
- symfony/framework-bundle: ~3.0|^4.0
This package is not auto-updated.
Last update: 2022-02-01 13:12:47 UTC
README
此包允许您集成 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....
}