GoldenlineSareSoapApiBundle
, (*1)
Symfony bundle for the SARE SOAP API, (*2)
Installation
The best way to install this bundle is by using Composer. Simply run:, (*3)
``` bash
$ php composer.phar require goldenline/sare-soap-api-bundle dev-master, (*4)
Then, enable the bundle:
``` php
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new GoldenLine\SareSoapApiBundle\GoldenlineSareSoapApiBundle(),
);
}
Finally add your certificate:, (*5)
goldenline_sare_soap_api:
cert: sare.pem
Your certificate should contain your private key combined with a signed certificate from SARE., (*6)
Usage
In your controller just do:, (*7)
public function someAction()
{
$sare = $this->get('goldenline_sare_soap_api.client');
}
or simply inject goldenline_sare_soap_api.client
into any other service., (*8)
License
This bundle is released under the MIT license. See the complete license in the
bundle:, (*9)
Resources/meta/LICENSE