loevgaard/consignor-shipment-server-bundle

Symfony 扩展包,用于集成 consignor-shipment-server-php-sdk

v1.1.0 2020-04-16 13:42 UTC

This package is auto-updated.

Last update: 2024-09-16 23:32:50 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score

Symfony 扩展包,用于集成 Consignor Shipment Server PHP SDK

安装步骤

步骤 1: 下载扩展包

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

$ composer require loevgaard/consignor-shipment-server-bundle

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

步骤 2: 启用扩展包

然后,将扩展包添加到项目 app/AppKernel.php 文件中已注册的扩展包列表中,以启用扩展包

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Loevgaard\ConsignorShipmentServerBundle\LoevgaardConsignorShipmentServerBundle(),
        ];

        // ...
    }

    // ...
}

步骤 3: 配置扩展包

# app/config/config.yml

loevgaard_consignor_shipment_server:
    actor: "insert your consignor webservice actor"
    key: "insert your consignor webservice key"