Download the PHP package antonkomarev/php-funpay-sms-parser without Composer
On this page you can find all versions of the php package antonkomarev/php-funpay-sms-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download antonkomarev/php-funpay-sms-parser
More information about antonkomarev/php-funpay-sms-parser
Files in antonkomarev/php-funpay-sms-parser
Package php-funpay-sms-parser
Short Description FunPay Transaction Verification SMS Parser written for contrived emulator.
License MIT
Homepage https://github.com/antonkomarev/php-funpay-sms-parser
Informations about the package php-funpay-sms-parser
PHP FunPay SMS Parser
Introduction
PHP FunPay SMS Parser library allows to parse SMS messages from transaction confirmation gateway.
This package was developed as a part of an FunPay interview, I'm not affiliated with FunPay in any way.
Contents
- Installation
- Install as composer package
- Standalone
- Demo
- Usage
- Instantiate Parser
- Available Methods
- Exceptions
- Testing
- Author
- License
Installation
Install as package
Pull in the package through Composer in your application:
Standalone
Clone or download project from PHP FunPay SMS Parser git repository.
Generate class autoload file and install PHPUnit.
Demo
Demo script could be executed using PHP CLI:
You could experiment with $message
variable value.
More examples could be found in tests/ParserTest.php
file.
Usage
Instantiate Parser
Available Methods
Get Yandex.Money account number
Get transaction money amount
Get confirmation pin-code
Exceptions
ParserException
(abstract)MoneyAmountNotFound
PinNotFound
YandexAccountNotFound
YandexAccountInvalid
Testing
Run the tests with:
Author
Anton Komarev |
---|
License
PHP FunPay SMS Parser
package is open-sourced software licensed under the Anton Komarev.Decomposition
image licensed under Creative Commons 3.0 by Arthur Shlain.