MoneyBird Bundle for Symfony 2 Applications. Bundle provides wrapper for moneybird-php-client
Prefered way to install this bundle is using composer
Download the bundle with composer:
$ php composer.phar require "kami/moneybird-api-bundle"<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Kami\MoneyBirdApiBundle\KamiMoneyBirdApiBundle(),
);
}Add the following configuration to your config.yml.
# app/config/config.yml
kami_moneybird:
redirect_url: localhost
client_id: test_client_id
client_secret: test_client_secret
debug: false # optional parameter for test mode activationOnly first three configuration values are required to use the bundle.
Core component of this bundle is MoneyBird service.
<?php
$this->get('kami_moneybird'); /** @var \Picqer\Financials\Moneybird\Moneybird */