ruwler/ruwler-sdk-bundle

Ruwler SDK Bundle

安装: 135

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

公开问题: 0

类型:symfony-bundle

1.0.9 2019-01-05 13:13 UTC

This package is auto-updated.

Last update: 2024-09-14 06:54:47 UTC


README

Latest Stable Version

使用 Symfony Flex 的应用程序

打开命令行控制台,进入您的项目目录并执行

$ composer require ruwler

不使用 Symfony Flex 的应用程序

步骤 1: 下载包

打开命令行控制台,进入您的项目目录并执行以下命令以下载此包的最新稳定版本

$ composer require ruwler/ruwler-sdk-bundle

此命令需要您全局安装了 Composer,具体请参阅 Composer 文档中的安装章节

步骤 2: 启用包

然后,通过将其添加到项目中 app/AppKernel.php 文件中注册的包列表中来启用该包

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Ruwler\SdkBundle\RuwlerSdkBundle(),
        );

        // ...
    }

    // ...
}

配置

可以放置在 app/config/config.yml 文件中的示例配置。

ruwler_sdk:
    api_key: "xxx"

使用方法

此包公开了自动配置的 Ruwler SDK 客户端类: 'ruwler.client'

链接