fatpanda-gmbh / bexio-connector-bundle
This bundle wraps the fatpanda-gmbh/bexio-connector library for symfony apps
Installs: 1 117
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.1
- fatpanda-gmbh/bexio-connector: ^0.1.1
- symfony/framework-bundle: ^3.4 || ^4.2 || ^5.0
This package is auto-updated.
Last update: 2024-04-29 04:28:09 UTC
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