goldenline/sare-soap-api-bundle

Symfony bundle for the SARE SOAP API

1.0.0 2014-12-17 13:14 UTC

This package is not auto-updated.

Last update: 2024-12-17 05:32:46 UTC


README

Dependency Status

Symfony bundle for the SARE SOAP API

Installation

The best way to install this bundle is by using Composer. Simply run:

$ php composer.phar require goldenline/sare-soap-api-bundle dev-master

Then, enable the bundle:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new GoldenLine\SareSoapApiBundle\GoldenlineSareSoapApiBundle(),
    );
}

Finally add your certificate:

goldenline_sare_soap_api:
    cert: sare.pem

Your certificate should contain your private key combined with a signed certificate from SARE.

Usage

In your controller just do:

public function someAction()
{
    $sare = $this->get('goldenline_sare_soap_api.client');
}

or simply inject goldenline_sare_soap_api.client into any other service.

License

This bundle is released under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE