spyrit / smoney-bundle
Smoney客户端的Symfony包
dev-master
2018-01-10 18:42 UTC
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-09-26 09:29:44 UTC
README
使用composer获取包
从您的Symfony项目的根目录终端运行此命令以添加SmoneyBundle
composer require smoney/smoney-bundle
启用包
要开始使用该包,请在您的应用程序的kernel类中注册该包
// app/AppKernel.php class AppKernel extends Kernel { public function registerBundles() { $bundles = [ // ... new JMS\SerializerBundle\JMSSerializerBundle(), new Smoney\SmoneyBundle\SmoneyBundle(), // ... ]; } }
配置包
# 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