maviance/smobilpay-php
Composer 安装命令:
composer require maviance/smobilpay-php
包简介
Smobilpay Third Party (S3P) API client for PHP
关键字:
README 文档
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
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AccountApi | accountGet | GET /account | Retrieve account information and remaining account balance |
| AccountValidationApi | verifyGet | GET /verify | Verify service number |
| ConfirmApi | collectstdPost | POST /collectstd | Execute payment collection |
| HealthcheckApi | pingGet | GET /ping | Check on the availability of the api |
| InitiateApi | billGet | GET /bill | Get bill payment handler |
| InitiateApi | quotestdPost | POST /quotestd | Request quote with price details about the payment |
| InitiateApi | subscriptionGet | GET /subscription | Get subscription payment handler |
| MasterdataApi | cashinGet | GET /cashin | Retrieve available cashin packages |
| MasterdataApi | cashoutGet | GET /cashout | Retrieves available cashout packages |
| MasterdataApi | merchantGet | GET /merchant | Retrieve list of merchants supported by the system. |
| MasterdataApi | productGet | GET /product | Retrieve list of available products |
| MasterdataApi | serviceGet | GET /service | Retrieve list of services supported by the system. |
| MasterdataApi | serviceIdGet | GET /service/{id} | Retrieve single service |
| MasterdataApi | topupGet | GET /topup | Retrieve available topup packages |
| MasterdataApi | voucherGet | GET /voucher | Retrieve list of available vouchers to purchase |
| VerifyApi | historystdGet | GET /historystd | Retrieve list of historic payment collection. |
| VerifyApi | verifytxGet | GET /verifytx | Get the current payment collection status |
Documentation For Models
maviance/smobilpay-php 适用场景与选型建议
maviance/smobilpay-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15.28k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2021 年 04 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「api」 「payments」 「Mobile Payments」 「mobile money」 「Third Party」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 maviance/smobilpay-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 maviance/smobilpay-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 maviance/smobilpay-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dealing with payments through the Egyptian payment gateway PayMob
Librería para la gestión sencilla de pagos mediante TPV Redsys y Paypal
A PSR-7 compatible library for making CRUD API endpoints
Alfabank REST API integration
Scanpay module for Magento 2
Zero-dependency raw PHP DNS resolver, domain-ownership verification, and intoDNS/MxToolbox-style diagnostics. Queries authoritative nameservers directly over sockets — never trusts the recursive cache for ownership checks.
统计信息
- 总下载量: 15.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 26
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2021-04-12