coffeebike/collmex-bundle

Collmex API 的 Symfony Bundle

1.2.0 2016-07-15 14:50 UTC

This package is auto-updated.

Last update: 2024-09-11 20:42:11 UTC


README

这是一个 Collmex API 的 Symfony Bundle。

注意:此 Bundle 仍在开发中!

请打开一个问题或 PR 以贡献项目。 请查看 贡献 页面

安装

步骤 1:下载 Bundle

打开命令行,进入您的项目目录,然后执行以下命令以下载此 Bundle 的最新稳定版本

$ composer require coffeebike/collmex-bundle

此命令需要您全局安装 Composer,如 Composer 文档的 安装章节 中所述。

步骤 2:启用 Bundle

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

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new CoffeeBike\CollmexBundle\CoffeeBikeCollmexBundle(),
        );

        // ...
    }

    // ...
}

步骤 3:添加配置到 config.yml

app/config.yml 中添加 Collmex 用户的凭据

coffee_bike_collmex:
    user: 'collmex-user'
    password: '*********'
    customer_id: '123456'