spoort/symfony2-economic-bundle

Symfony2 与 e-conomic.dk 的集成

安装: 303

依赖: 0

建议者: 0

安全: 0

星标: 1

关注者: 2

分支: 0

开放问题: 0

类型:symfony-bundle

1.0.3 2017-08-29 08:32 UTC

This package is not auto-updated.

Last update: 2024-09-14 19:14:46 UTC


README

步骤 1: 下载 Symfony2EconomicBundle

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

$ composer require symfony2-economic

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

步骤 2: 启用捆绑包

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

<?php
// app/AppKernel.php

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

            new Spoort\Bundle\Symfony2EconomicBundle\Symfony2EconomicBundle(),
        );

        // ...
    }

    // ...
}

步骤 3: 设置配置

在 config.yml 中添加以下内容

symfony2_economic:
    wsdl_url: <economic-wsdl-url>

    # If you like to connect with username/password then set agreement_numbe, username and password
    agreement_number: <economic-agreement-number>
    username: <economic-username>
    password: <economic-password>

    # or

    # If you would like to connect via token then set token and app_token
    token: <economic-token>
    app_token: <economic-app-token>