chaplean / zoho-invoice-client-bundle
ZohoInvoice 客户端包
v1.0.6
2018-09-14 15:37 UTC
Requires
- php: >=7.0.8
- chaplean/rest-client-bundle: ^1.0
- symfony/config: ^2.8 || ^3.0 || ^4.0
- symfony/console: ^2.8 || ^3.0 || ^4.0
- symfony/dependency-injection: ^2.8 || ^3.0 || ^4.0
- symfony/yaml: ^2.8 || ^3.0 || ^4.0
Requires (Dev)
- chaplean/codeship-scripts: ^1.0
- chaplean/coding-standard: ^1.1
- mockery/mockery: dev-master
- phpunit/phpunit: ^6.3
- symfony/http-kernel: ^2.8 || ^3.0 || ^4.0
- symfony/var-dumper: ^2.8 || ^3.0 || ^4.0
This package is auto-updated.
Last update: 2024-08-28 12:26:07 UTC
README
先决条件
本版本包需要 Symfony 2.8+。
安装
1. Composer
composer require chaplean/zoho-invoice-client-bundle
2. AppKernel.php
添加
new Chaplean\Bundle\ZohoInvoiceClientBundle\ChapleanZohoInvoiceClientBundle(),
配置
1. config.yml
imports: - { resource: '@ChapleanZohoInvoiceClientBundle/Resources/config/config.yml' }
2. paramters.yml
chaplean_zoho_invoice.access_token: 'your access token' chaplean_zoho_invoice.organization_id: 'your organization id'
可用函数
-
项目
- getItems()
- getItem()
- postItem()
- putItem()
- deleteItem()
- postItemActive()
- postItemInactive()
-
估算
- getEstimate()
- getEstimates()
- postEstimate()
- putEstimate()
- deleteEstimate()
-
发票
- getInvoice()
- getInvoices()
- postInvoice()
- putInvoice()
- deleteInvoice()