dvelopment/fastbill-bundle

Symfony2 Bundle for making calls to fastbill.com API

dev-master 2013-11-26 09:28 UTC

This package is not auto-updated.

Last update: 2024-11-18 17:02:07 UTC


README

Symfony 2 Bundle that registers the DVelopment/FastBill library as a service.

Installation

Install the bundle using composer (see http://getcomposer.org/ for more information about composer)

composer require dvelopment/fastbill-bundle dev-master

or add the package directly to your composer.json file and run composer update.

Then just add the bundle to your AppKernel.php file:

<?php
// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new DVelopment\FastBillBundle\DVelopmentFastBillBundle(),
    // ...
);

Configuration

You need to configure your FastBill API credentials in config.yml (you can find the API Key inside the Settings area of your account settings on my.fastbill.com)

d_velopment_fast_bill:
    # the username is your e-mail address
    # used to sign up to FastBill
    username: %fast_bill_username%
    apiKey:   %fast_bill_api_key%

Usage

The API wrapper is available as d_velopment_fast_bill.api service:

<?php
$api = $container->get('d_velopment_fast_bill.api');
$customers = $api->getCustomers();