cyphp/empg
Composer 安装命令:
composer require cyphp/empg
包简介
Enhanced MPG unified API for PHP 7.x
README 文档
README
Enhanced MPG unified API library for PHP 7.x
Inspired by https://github.com/Moneris/eCommerce-Unified-API-PHP
Features
- PHP 7.x compatible
- Improvement reliability
- Composer package
- Mimic as much as original class nomenclature
Install
composer require cyphp/empg
Example
require_once './vender/autoload.php'; use Empg\Client; $client = new Client('MY_STORE_ID', 'MY_API_TOKEN'); $response = $client->post( new MpgRequest( new MpgTransaction([ // ... ]) ) );
Use Test Endpoints
$client = new Client('MY_STORE_ID', 'MY_API_TOKEN', [ 'env' => Empg\Configuration::ENV_TEST, ]);
License
MIT
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2017-01-31