kami / moneybird-api-bundle
A Symfony2 bundle for working with Moneybird v2
Installs: 50
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.5.0
- picqer/moneybird-php-client: ~0.9
- symfony/framework-bundle: >=2.8
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is auto-updated.
Last update: 2024-10-29 04:53:11 UTC
README
MoneyBird Bundle for Symfony 2 Applications. Bundle provides wrapper for moneybird-php-client
Installation
1. Download:
Prefered way to install this bundle is using composer
Download the bundle with composer:
$ php composer.phar require "kami/moneybird-api-bundle"
2. Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Kami\MoneyBirdApiBundle\KamiMoneyBirdApiBundle(), ); }
3. Configure the bundle:
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 activation
Only first three configuration values are required to use the bundle.
MoneyBird Service
Core component of this bundle is MoneyBird service.
<?php $this->get('kami_moneybird'); /** @var \Picqer\Financials\Moneybird\Moneybird */