payprocessing / starrys
此包最新版本(4.0.0)没有提供许可证信息。
Starrys
4.0.0
2023-07-27 12:57 UTC
Requires
- php: >=7.2
- ext-curl: *
- ext-json: *
- myclabs/php-enum: ^1.6
- psr/log: ^1.0
Requires (Dev)
- phpunit/phpunit: ^8.0.0||^9.0.0||^10.0.0
README
安装
项目支持通过Composer进行安装
composer require payprocessing/starrys
测试
要运行测试,需要安装PHPUnit,安装命令如下
composer require phpunit/phpunit
要运行集成测试,需要复制文件 tests/integration/MerchantSettingsSample.php,删除名称中的Sample,并插入商店设置。同时,将私钥和证书放入 tests/integration/merchant_data 文件夹中。然后,在项目根目录下执行命令
vendor/bin/phpunit tests/integration
使用示例
使用示例可以在 tests/integration 文件夹的集成测试中找到