spyrit/smoney-bundle

Symfony bundle for Smoney client

Installs: 3 652

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 2

Type:symfony-bundle

dev-master 2018-01-10 18:42 UTC

This package is not auto-updated.

Last update: 2024-05-09 07:46:43 UTC


README

Get the bundle using composer

Add SmoneyBundle by running this command from the terminal at the root of your Symfony project:

composer require smoney/smoney-bundle

Enable the bundle

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

// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new JMS\SerializerBundle\JMSSerializerBundle(),
            new Smoney\SmoneyBundle\SmoneyBundle(),
            // ...
        ];
    }
}

Configure the bundle

# app/config/config.yml
smoney:
    api_token: YOUR_TOKEN
    api_version: v1  #Global version to use for the API (can be override with SetVersion in any service)
    api_base_url: https://rest-pp.s-money.fr/api/sandbox