zeevx/lara-lazer
Composer 安装命令:
composer require zeevx/lara-lazer
包简介
A Laravel Package for LazerPay Finance - https://lazerpay.finance
关键字:
README 文档
README
LazerPay Laravel Package
Lara-Lazer helps you Set up, test, and manage your Lazerpay Finance integration directly in your Laravel App.
Official Documentation
https://docs.lazerpay.finance/home/
Installation
You can install the package via composer:
composer require zeevx/lara-lazer
After installation, run (to create the lara-lazer.php config file):
php artisan lazerpay:publish
Input your secrete key, public key and version number for Lazerpay:
return [ 'LAZER_PUBLIC_KEY' => '', 'LAZER_SECRET_KEY' => '', 'LAZER_VERSION' => 1 ];
Usage:
Use the helper function
lazerpay() //It works automatically
To see supported coins
- get accepted coins by doing this:
lazerpay()->getAcceptedCoins();
To Initiate transaction
- Initiate a transaction by doing this:
$params = [ 'reference' => 'random-unique-string', 'amount' => 100000, 'currency' => 'USD', 'customer_name' => 'Paul Adams', 'customer_email' => 'adamsohiani@gmail.com', 'coin' => 'USDT', 'accept_partial_payment' => false, ]; lazerpay()->initiateTransaction($params);
To Verify transaction
- verify a transaction by doing this:
lazerpay()->confirmTransaction('reference-used');
To make transfer
- to initiate transfer, do this:
$params = [ 'amount' => 1000, 'recipient' => 'recipient-address', 'coin' => 'coin', 'blockchain' => 'blockchain' ]; lazerpay()->transfer($params);
Security
If you discover any security related issues, please email adamsohiani@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
zeevx/lara-lazer 适用场景与选型建议
zeevx/lara-lazer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 1, 最近一次更新时间为 2022 年 02 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「zeevx」 「lara-lazer」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 zeevx/lara-lazer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zeevx/lara-lazer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 zeevx/lara-lazer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A modern Laravel package for the Termii messaging & OTP API - https://www.termii.com
A Laravel Package for OvalFi - https://dev.ovalfi-app.com/
A Laravel Package for Termii - https://www.termii.com
A SendByte mail transport for Laravel - send mail through https://sendbyte.africa with Laravel's native mail system
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-02-23