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
Requires
- php: >=5.4.0
- jms/serializer-bundle: ~1.1
- spyrit/smoney: dev-master
- symfony/framework-bundle: ~2.3|~3.0
This package is not auto-updated.
Last update: 2024-12-19 10:26:28 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