bluebadger / monerisapi
This package is abandoned and no longer maintained.
No replacement package was suggested.
Enhanced MPG unified API for PHP 7.x
1.0.0
2017-03-15 17:11 UTC
Requires
- php: ^5.6 || ^7.0
- guzzlehttp/guzzle: ^6.2
- sabre/xml: ^2.0
- symfony/yaml: ^2.8
Requires (Dev)
- phpunit/phpunit: ^5.7
- symfony/var-dumper: ^3.2
This package is not auto-updated.
Last update: 2018-12-04 15:42:23 UTC
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