spyrit/smoney-bundle

Smoney客户端的Symfony包

安装次数: 3,652

依赖者: 0

推荐者: 0

安全性: 0

星标: 0

关注者: 4

分支: 2

类型:symfony-bundle

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

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