This bundle lets you use Billogram in your Symfony application.
$ composer require jongotlin/billogram-bundle
Composer will install the bundle to jongotlin/billogram-bundle
directory.
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new JGI\BillogramBundle\JGIBillogramBundle(),
// ...
);
}
# app/config/config.yml
jgi_billogram:
id: %billogram_id%
password: %billogram_password%
sandbox_id: %billogram_sandbox_id%
sandbox_password: %billogram_sandbox_password%
sandbox: %billogram_sandbox%
# app/config/parameters.yml
billogram_id: "5367-fl60Ku6p"
billogram_password: "d4934454228e704eef26e8d621d1461b"
billogram_sandbox_id: "1725-dqst7op6"
billogram_sandbox_password: "da2e4561a99e74f7872222ad310b81ac"
billogram_sandbox: true
$this->getContainer()->get('jgi.billogram'); // Billogram\Api