boatrace-ninja / purchaser
The Boatrace Ninja Purchaser.
1.0.0
2023-11-07 21:39 UTC
Requires
- php: ^8.0
- php-di/php-di: ^6.0 || ^7.0
- php-webdriver/webdriver: ^1.0
Requires (Dev)
- phpunit/phpunit: ^9.0
README
Installation
$ composer require boatrace-ninja/purchaser
Usage
<?php require __DIR__ . '/vendor/autoload.php'; use Boatrace\Ninja\Purchaser; Purchaser::setDepositAmount(10000) ->setSubscriberNumber('xxxxxxxx') ->setPersonalIdentificationNumber('xxxx') ->setAuthenticationPassword('xxxxxx') ->setPurchasePassword('xxxxxx') ->setPurchaseUnitAmount(2000) ->purchase(24, 12, 3, [12, 13, 14, 15, 16]); Purchaser::setDepositAmount(10000) ->setSubscriberNumber('xxxxxxxx') ->setPersonalIdentificationNumber('xxxx') ->setAuthenticationPassword('xxxxxx') ->setPurchasePassword('xxxxxx') ->setPurchaseUnitAmount(2500) ->purchase(24, 12, 6, [123, 124, 125, 126]);
Testing
$ npm install selenium-standalone --save-dev
$ npx selenium-standalone install
$ npx selenium-standalone start
$ ./vendor/bin/phpunit
License
The Boatrace Ninja Purchaser is open source software licensed under the MIT license.