payu / card-storage-client-php
卡存储PHP客户端
1.0.1
2018-05-03 07:37 UTC
Requires
- php: >=5.6
- ext-curl: *
Requires (Dev)
- phpunit/phpunit: ~5.7
This package is auto-updated.
Last update: 2024-09-10 21:49:22 UTC
README
先决条件
- PHP 5.6及以上版本
- 支持OpenSSL的curl扩展
- PHPUnit 4.2.0用于运行测试套件(可选)
- Composer(可选)
Composer
您可以通过Composer安装此库。
- 方法 #1
- 运行
composer require payu/card-storage-client-php
- 方法 #2
- 将其添加到您的composer.json中
{ "require": { "payu/card-storage-client-php": "^0.1.0" } }
- 然后通过以下方式安装
composer install
要使用此库,请包含Composer的自动加载
require_once('vendor/autoload.php');
要使用示例,请在示例脚本中添加以下内容
require_once('/path/to/vendor/autoload.php');
手动安装
使用以下命令获取PayU卡存储客户端库的最新版本
git clone https://github.com/PayU/card-storage-client-php.git
要使用此库,请将以下内容添加到您的PHP脚本中
require_once __DIR__ . '/path/to/card-storage-client-php/src/init.php';
要使用示例,请在示例脚本中添加以下内容
require_once __DIR__ . '/../src/init.php';
入门指南
您可以在示例目录中找到使用示例
- cardStorageExample.php - 基于卡号的获取卡信息的最小要求