albertski/experient-bundle

A Symfony2 bundle for using the Experient API

Installs: 37

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0.1 2015-09-23 19:59 UTC

This package is not auto-updated.

Last update: 2024-05-01 08:28:32 UTC


README

Used for Symfony2 project to use the Experient SOAP API.

Installation

Get the bundle with composer by running this command at the root of your symfony project.

composer require albertski/experient-bundle

Enable the bundle

To start using the bundle, register the bundle in your application's kernel class:

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new ExperientBundle\ExperientBundle(),
        // ...
    );
}

Configuration

Edit app/config/config.yml.

experient:
  username: %experient.username%
  password: %experient.password%
  showcode: %experient.showcode%
  accountDomain: %experient.accountDomain%
  wsdl: %experient.wsdl%
  namespace: %experient.namespace%

Edit parameters.yml. Add parameters and add the parameter values.

parameters:
    .....
    .....
    experient.username:
    experient.password:
    experient.showcode:
    experient.accountDomain:
    experient.wsdl:
    experient.namespace:

Usage

You now have access to the experient service.

// In a controller
$experient = $this->get('experient');