承接 setono/gls-webservice-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

setono/gls-webservice-bundle

Composer 安装命令:

composer require setono/gls-webservice-bundle

包简介

Symfony bundle that integrates the GLS webservice PHP SDK

README 文档

README

Latest Version Software License Build Status

Integrates the GLS webservice PHP SDK into Symfony.

Installation

Step 1: Download the bundle

composer require setono/gls-webservice-bundle

Step 2: Enable the bundle

The bundle will automatically be enabled with Symfony Flex. Otherwise add it to config/bundles.php yourself.

Usage

Now you can inject the ClientInterface into your service:

<?php

use Setono\GLS\Webservice\Client\ClientInterface;

final class YourService
{
    public function __construct(private readonly ClientInterface $client)
    {
    }
}

With autowiring this will work out of the box. If you're not using autowiring you have to inject it in your service definition:

<?php

use Setono\GLS\Webservice\Client\ClientInterface;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

use function Symfony\Component\DependencyInjection\Loader\Configurator\service;

return static function (ContainerConfigurator $container): void {
    $container->services()
        ->set(YourService::class)
        ->args([service(ClientInterface::class)]);
};

统计信息

  • 总下载量: 53.25k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 3
  • 推荐数: 3

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固