drinks-it/pixi-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

drinks-it/pixi-api

最新稳定版本:8.0.0

Composer 安装命令:

composer require drinks-it/pixi-api

包简介

A simple decorator pattern over the native soap client in PHP to make it easier to work with.

README 文档

README

The Soap library is based on the PHP Soap extension that is available in PHP version 5.0 an upper.
This library is based on the syntax that was used in the Apps-Framework on pixi but is now decoupled and can be used in any other project as well.

Quick Start

To include the library into your project you can download it or include it using composer require

To require it using composer you need to put the following content into your composer.json file and run composer install.

:::js  
{
    "repositories" : [{
        "type" : "composer",
        "url" : "https://apps-live.pixi.eu/satis"
        }
    ],
    "require" : {
        "pixi/api" : "~2.0"
    }
}

If you download the repository you need to, install the development dependencies via composer. From the root Lib - Soap, run:

$ php composer install
After including the autoload.php into your project you can start using the library.

To properly initialize the library with your pixi* API you can use following code snipped:

:::PHP
<?php  
  
require __DIR__.'/../vendor/autoload.php';  
  
$username = 'Foo';  
$password = 'Bar';  
$endpoint = "https://soap.pixi.eu/soap/Endpoint/";  
  
$options = new Pixi\API\Soap\Options($username, $password, $endpoint);  
$options->allowSelfSigned();  
  
$soapClient = new \Pixi\API\Soap\Client(null, $options->getOptions());
  
?>  

API calls are executed trough the magic method __call, so you can directly call your desired API call.

:::PHP  
<?php  
$resultArray = $soapClient->pixiGetShops()->getResultset();  
  
echo '<pre>';  
var_dump($resultArray);
?>  

NOTE: For more details visit the library wiki

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-23