fatpanda-gmbh/bexio-connector-bundle
Composer 安装命令:
composer require fatpanda-gmbh/bexio-connector-bundle
包简介
This bundle wraps the fatpanda-gmbh/bexio-connector library for symfony apps
README 文档
README
A Symfony bundle that wraps the Bexio Connector library.
Setup
Add to composer.json
composer require fatpanda-gmbh/bexio-connector-bundle
Then enable it in your kernel:
// app/AppKernel.php public function registerBundles() { $bundles = array( //... new Fatpanda\BexioConnectorBundle\BexioConnectorBundle(), //...
Usage
The bundle registers the bexio_connector service.
To use it, you need a valid Bexio API token that you can generate at https://office.bexio.com/index.php/admin/apiTokens#/
app.service.bexio: class: AppBundle\Service\BexioService arguments: $connector: '@bexio_connector' $token: %token%
use Fatpanda\BexioConnector\BexioConnector; class BexioService { /** * @var BexioConnector */ private $connector; public function __construct(BexioConnector $connector, string $token) { $this->connector = $connector; $this->connector->setToken($token); } public function getContactsList() { $this->connector->getContactsList(); } }
License
This bundle is under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE
统计信息
- 总下载量: 1.16k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-02