maviance / smobilpay-php
Smobilpay Third Party (S3P) API client for PHP
Installs: 6 540
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 4
Open Issues: 0
Requires
- php: >=8.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.5
- ramsey/uuid: @stable
Requires (Dev)
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
README
Php library for the Smobilpay S3P API
Note Only use this branch with PHP 8.1 and above
Note Compatbility with PHP releases < 8.1 are being maintained in the v1.0 branch
Getting Started
Composer
To install the library via Composer, add composer.json:
{ "require": { "maviance/smobilpay-php": "*" } }
Usage
The official API documentation can be found at : https://apidocs.smobilpay.com
Samplecode to call account details:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // inject credentials $token = "public access key"; $secret = "access secret"; $url = "https://XXXXX"; $xApiVersion = "3.0.0"; // string | api version info // init $config = new \Maviance\S3PApiClient\Configuration(); $config->setHost($url); $client = new \Maviance\S3PApiClient\ApiClient($token, $secret, ['verify' => false]); // trigger request $apiInstance = new Maviance\S3PApiClient\Service\AccountApi($client, $config); try { $result = $apiInstance->accountGet($xApiVersion); print_r($result); } catch (Exception $e) { echo 'Exception when calling AccountApi->accountGet: ', $e->getMessage(), PHP_EOL; } ?>
Please visit https://apidocs.smobilpay.com for usage documentation
Documentation for API Endpoints
All URIs are relative to /v2