{"id":16185369,"url":"https://github.com/antonkomarev/php-funpay-sms-parser","last_synced_at":"2025-06-13T16:33:42.748Z","repository":{"id":56948894,"uuid":"139517157","full_name":"antonkomarev/php-funpay-sms-parser","owner":"antonkomarev","description":"FunPay Transaction Confirmation SMS Parser written for contrived emulator.","archived":false,"fork":false,"pushed_at":"2019-09-04T12:27:41.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T15:49:36.622Z","etag":null,"topics":["emulator","parser","php","sms","transaction","verification"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antonkomarev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-03T02:19:03.000Z","updated_at":"2023-09-25T11:47:08.000Z","dependencies_parsed_at":"2022-08-21T03:10:17.639Z","dependency_job_id":null,"html_url":"https://github.com/antonkomarev/php-funpay-sms-parser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonkomarev%2Fphp-funpay-sms-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonkomarev%2Fphp-funpay-sms-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonkomarev%2Fphp-funpay-sms-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonkomarev%2Fphp-funpay-sms-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonkomarev","download_url":"https://codeload.github.com/antonkomarev/php-funpay-sms-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657270,"owners_count":20974345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emulator","parser","php","sms","transaction","verification"],"created_at":"2024-10-10T07:14:08.180Z","updated_at":"2025-04-07T13:13:44.633Z","avatar_url":"https://github.com/antonkomarev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP FunPay SMS Parser\n\n![ak-php-funpay-sms-parser](https://user-images.githubusercontent.com/1849174/42195292-ec2e0330-7e80-11e8-9069-6046946ccb25.png)\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/antonkomarev/php-funpay-sms-parser/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release/antonkomarev/php-funpay-sms-parser.svg?style=flat-square\" alt=\"Releases\"\u003e\u003c/a\u003e\n\u003ca href=\"https://travis-ci.org/antonkomarev/php-funpay-sms-parser\"\u003e\u003cimg src=\"https://img.shields.io/travis/antonkomarev/php-funpay-sms-parser/master.svg?style=flat-square\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://styleci.io/repos/139517157\"\u003e\u003cimg src=\"https://styleci.io/repos/139517157/shield\" alt=\"StyleCI\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/antonkomarev/php-funpay-sms-parser/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/antonkomarev/php-funpay-sms-parser.svg?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Introduction\n\nPHP FunPay SMS Parser library allows to parse SMS messages from transaction confirmation gateway.\n\nThis package was developed as a part of an FunPay interview, I'm not affiliated with FunPay in any way.\n\n## Contents\n\n- [Installation](#installation)\n  - [Install as composer package](#install-as-package)\n  - [Standalone](#standalone)\n- [Demo](#demo)\n- [Usage](#usage)\n  - [Instantiate Parser](#instantiate-parser)\n  - [Available Methods](#available-methods)\n  - [Exceptions](#exceptions)\n- [Testing](#testing)\n- [Author](#author)\n- [License](#license)\n\n## Installation\n\n### Install as package\n\nPull in the package through Composer in your application:\n\n```sh\n$ composer install antonkomarev/php-funpay-sms-parser\n```\n\n### Standalone\n\nClone or download project from [PHP FunPay SMS Parser git repository](https://github.com/antonkomarev/php-funpay-sms-parser).\n\n```sh\n$ git clone git@github.com:antonkomarev/php-funpay-sms-parser.git \u0026\u0026 cd ./php-funpay-sms-parser\n```\n\nGenerate class autoload file and install PHPUnit.\n\n```sh\n$ composer install\n```\n\n## Demo\n\nDemo script could be executed using PHP CLI:\n\n```sh\n$ php public/demo.php\n```\n\nYou could experiment with `$message` variable value.\n\nMore examples could be found in `tests/ParserTest.php` file.\n\n## Usage\n\n### Instantiate Parser\n\n```php\n$message = '\n    Пароль: 0823\n    Спишется 100,85р.\n    Перевод на счет 410017080996934\n';\n\n$parsedMessage = new \\AK\\FunPay\\SmsParser\\Parser($message);\n```\n\n### Available Methods\n\n#### Get Yandex.Money account number\n\n```php\n$parsedMessage-\u003eaccount(): string\n```\n\n#### Get transaction money amount\n\n```php\n$parsedMessage-\u003emoneyAmount(): float\n```\n\n#### Get confirmation pin-code\n\n```php\n$parsedMessage-\u003epin(): string\n```\n\n### Exceptions\n\n- `ParserException` (abstract)\n- `MoneyAmountNotFound`\n- `PinNotFound`\n- `YandexAccountNotFound`\n- `YandexAccountInvalid`\n\n## Testing\n\nRun the tests with:\n\n```sh\n$ vendor/bin/phpunit\n```\n\n## Author\n\n| \u003ca href=\"https://github.com/antonkomarev\"\u003e![@antonkomarev](https://avatars.githubusercontent.com/u/1849174?s=110)\u003cbr /\u003eAnton Komarev\u003c/a\u003e |\n| :---: |\n\n## License\n\n- `PHP FunPay SMS Parser` package is open-sourced software licensed under the [MIT license](LICENSE) by [Anton Komarev].\n- `Decomposition` image licensed under [Creative Commons 3.0](https://creativecommons.org/licenses/by/3.0/us/) by Arthur Shlain.\n\n[Anton Komarev]: https://komarev.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonkomarev%2Fphp-funpay-sms-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonkomarev%2Fphp-funpay-sms-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonkomarev%2Fphp-funpay-sms-parser/lists"}