diablomedia / gpcsv-generator
库,用于辅助生成CashPro Global Payments GPCSV文件
1.0.1
2021-03-17 23:09 UTC
Requires
- php: ^7.2 || ^8.0
- ext-filter: *
Requires (Dev)
- diablomedia/php-cs-fixer-config: ^2.0
- diablomedia/phpunit-pretty-printer: ^4.0
- friendsofphp/php-cs-fixer: 2.18.3
- maglnet/composer-require-checker: ^2.1 || ^3.0
- phpro/grumphp-shim: ^0.22.0 || ^1.1
- phpstan/phpstan: 0.12.81
- phpunit/phpunit: ^8.5.15
- psalm/plugin-phpunit: ^0.15.1
- vimeo/psalm: 4.6.4
- dev-master
- 1.0.1
- 1.0.0
- dev-dependabot/composer/phpstan/phpstan-1.9.14
- dev-dependabot/github_actions/actions/cache-3.2.3
- dev-dependabot/github_actions/actions/checkout-3.3.0
- dev-dependabot/github_actions/shivammathur/setup-php-2.23.0
- dev-dependabot/composer/vimeo/psalm-4.30.0
- dev-dependabot/composer/psalm/plugin-phpunit-tw-0.15.1or-tw-0.18.0
- dev-dependabot/github_actions/codecov/codecov-action-3
- dev-dependabot/composer/diablomedia/phpunit-pretty-printer-tw-4.0or-tw-9.0
- dev-dependabot/composer/friendsofphp/php-cs-fixer-2.19.3
This package is auto-updated.
Last update: 2024-09-19 16:33:46 UTC
README
库,用于辅助生成CashPro Global Payments GPCSV文件
用法
命令行界面
composer require diablomedia/gpcsv
代码
<?php $payment = new GPCSV\Payment(); $payment->setDestinationCountry($country); // Set other values... $csv = new GPCSV\File(); $csv->addPayment($payment); // Add other payments... echo $csv->getCsvString();
选项
默认情况下,Payment类会自动从发送给它的值中删除不支持的字符。如果您希望它抛出错误,可以禁用autoClean选项
<?php $payment = new Payment(['autoClean' => false]); // or: $payment = new Payment(); $payment->setOptionAutomaticallyCleanFields(false);