opifer / imuis
PHP 库,用于访问 imuis API
v0.1
2015-02-11 22:40 UTC
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ~4.0
Requires (Dev)
- fzaninotto/faker: ~1.4
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.2
This package is auto-updated.
Last update: 2024-08-28 22:22:10 UTC
README
Imuis
Muis 软件 为会计师和企业家构建管理软件。此软件包简化了从 PHP 项目与 iMuis API 的通信。客户端基于 2013 年 9 月 10 日的 Cloudswitch iMuis webservice 编写。
此软件包仍在开发中。目前只提供少量方法。还将添加更多方法,并欢迎任何 pull requests。
安装
将软件包添加到您的 composer.json 文件中
composer require opifer/imuis
示例
快速示例:如何将新债权人导入 Imuis
<?php require 'vendor/autoload.php'; use Opifer\Imuis\Client; use Opifer\Imuis\Model\Creditor; $creditor = new Creditor(); $creditor->setName('Rick van Laarhoven'); // Set any other data on the creditor $client = new Client('PARTNERKEY', 'ENVIRONMENT'); $response = $client->createCreditor($creditor); if ($response->hasErrors()) { $errors = $response->getErrors(); }