edlugz/tanda
Composer 安装命令:
composer require edlugz/tanda
包简介
This package provides you with the means to make requests to the Tanda API
README 文档
README
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
composer require edlugz/tanda
Publish Migration Files
php artisan vendor:publish --provider="EdLugz\Tanda\TandaServiceProvider" --tag="migrations"
Fill in all the details you will be requiring for your application. Here are the env variables for quick copy paste.
TANDA_RESULT_URL TANDA_C2B_RESULT_URL TANDA_CLIENT_ID TANDA_CLIENT_SECRET TANDA_ORG_ID TANDA_BASE_URL=
Usage
Using the facade
Sub Wallet
Tanda::subwallet()->create($name, $ipnUrl, $username, $password, $customFieldsKeyValue = []); Tanda::subwallet()->get(); Tanda::subwallet()->update($walletId, $name, $username, $password, $ipnUrl);
C2B - Fund Wallet (send stk push to mobile number)
Tanda::C2B()->request($serviceProviderId, $merchantWallet, $mobileNumber, $amount, $customFieldsKeyValue = []);
P2P - send to internal wallets
Tanda::P2P()->send($senderWallet, $receiverWallet, $amount, $customFieldsKeyValue = []);
B2C - send to bank accounts and mobile wallets
Tanda::B2C()->bank($merchantWallet, $bankCode, $amount, $accountNumber, $narration, $customFieldsKeyValue = []); Tanda::B2C()->mobile($merchantWallet, $serviceProviderId, $amount, $mobileNumber, $customFieldsKeyValue = []);
B2B - to paybills and till numbers
Tanda::B2B()->buygoods($merchantWallet, $amount, $till, $contact, $customFieldsKeyValue = []); Tanda::B2B()->paybill($merchantWallet, $amount, $paybill, $accountNumber, $contact, $customFieldsKeyValue = []);
Airtime - prepaid airtime (pinless topup)
Tanda::airtime()->prepaid($serviceProviderId, $amount, $mobileNumber, $customFieldsKeyValue = []);
Utility - kplc, nairobi water and paid tv
Tanda::utility()->postpaid($serviceProviderId, $amount, $accountNumber, $customFieldsKeyValue = []); Tanda::utility()->prepaid($amount, $accountNumber, $contact, $customFieldsKeyValue = []); Tanda::utility()->tv($serviceProviderId, $amount, $accountNumber, $customFieldsKeyValue = []);
Transaction - check status
Tanda::transaction()->status($transactionId);
Helper functions - get mno network based on mobile number
Tanda::helper()->serviceProvider($mobileNumber);
Helper functions - receive payout results
Tanda::helper()->payout($data);
Helper functions - receive c2b results
Tanda::helper()->c2b($data);
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email eddy.lugaye@gmail.com instead of using the issue tracker.
Credits
License
MIT. Please see the license file for more information.
edlugz/tanda 适用场景与选型建议
edlugz/tanda 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 365 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 12 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「Tanda」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 edlugz/tanda 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 edlugz/tanda 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 edlugz/tanda 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Tanda API Library
Alfabank REST API integration
This package provides you with the means to make requests to the Tanda API-V3
Laravel package for Tanda API
Laravel package for Accurate Online API integration.
Shared RCX Laravel DataTables UI and configuration helpers.
统计信息
- 总下载量: 365
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-18