定制 naugrim/wortmann-soap-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

naugrim/wortmann-soap-api

最新稳定版本:1.2.0

Composer 安装命令:

composer require naugrim/wortmann-soap-api

包简介

Allows to talk to the API of Wortmann AG

关键字:

README 文档

README

Semantic Versioning and git-flow are used. Please create pull-requests against the develop-branch.

Installation

composer require naugrim/wortmann-soap-api

Laravel

The package gets auto-discovered. Set WORTMANN_SOAP_API_USERNAME and WORTMANN_SOAP_API_PASSWORD in your .env.

Optional: Publish the config files with:

php artisan vendor:publish --provider='Naugrim\WortmannSoapApi\Provider\WortmannSoapApiProv'

Usage

Laravel

An instance of the API client can be injected into your Controller (for example):

<?php

use Naugrim\WortmannSoapApi\Client\Type\GetStockAndPriceInformationByProductIds;
use Naugrim\WortmannSoapApi\Contracts\WortmannSoapApi;

class MyController {

    /**
     * @var WortmannSoapApi
     */
    protected $client;

    /**
     * @param WortmannSoapApi $client
     */
    public function __construct(WortmannSoapApi $client)
    {
        $this->client = $client;
    }

    public function getStockInformation(array $productIds)
    {
        $response = $this->client->request(
            GetStockAndPriceInformationByProductIds::class,
            [6466010, 6466011]
        );
        
        // do something with the response
        dump($response->entry());
    }
}

Standalone

See demo/index.php.

统计信息

  • 总下载量: 767
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固