kami/moneybird-api-bundle

A Symfony2 bundle for working with Moneybird v2

0.1 2017-02-06 14:55 UTC

This package is auto-updated.

Last update: 2024-04-29 03:35:20 UTC


README

MoneyBird Bundle for Symfony 2 Applications. Bundle provides wrapper for moneybird-php-client

Build Status SensioLabsInsight

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 */