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
drinks-it/pixi-api 适用场景与选型建议
drinks-it/pixi-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.91k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2020 年 03 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 drinks-it/pixi-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 drinks-it/pixi-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 7.91k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-23