webtopay/libwebtopay
Composer 安装命令:
composer require webtopay/libwebtopay
包简介
PHP Library for Paysera payment gateway integration
README 文档
README
The Checkout API (Payment Gateway API) allows for the collection of online payments with many payment methods. The Checkout API is easy to integrate – simply use one of our methods and the checkout processes will be performed automatically. The library can be used to check all the necessary security parameters of transferred and received data. More information can be found in the documentation.
Installation
Easiest way to use library is to include merged all-in-one file. It is located in base libwebtopay directory, "WebToPay.php". In this case you only need this one file. Example:
<?php require_once('WebToPay.php');
Alternatively, you can use files in the "src" folder. Either set-up autoloader or include file "includes.php" in "src" directory. Example:
<?php require_once('libwebtopay/src/includes.php'); // Your code goes here
Another way to install library is using composer:
// to install the latest version
"composer require webtopay/libwebtopay
// to install the oldest supported version (in some projects)
"composer require webtopay/libwebtopay "^1.6"
// to install version with new interface
"composer require webtopay/libwebtopay "^2.0"
And then:
<?php use WebToPay;
Pay attention that the ^3.0 version has the same interface as the ^2.0 but newest one is brought up to
PHP 7.4 standards and code style like strict_types, type hints etc
Testing
$ bash run_tests.sh
webtopay/libwebtopay 适用场景与选型建议
webtopay/libwebtopay 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.21M 次下载、GitHub Stars 达 11, 最近一次更新时间为 2013 年 04 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 webtopay/libwebtopay 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 webtopay/libwebtopay 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.21M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 27
- 依赖项目数: 7
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2013-04-02