dvelopment / fastbill-bundle
Symfony2 Bundle for making calls to fastbill.com API
Installs: 56
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
- dvelopment/fastbill: dev-master
- symfony/framework-bundle: ~2.1
Requires (Dev)
- phpunit/phpunit: 3.7.*
- symfony/class-loader: ~2.1
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();