PHP code example of antonkomarev / php-funpay-sms-parser

1. Go to this page and download the library: Download antonkomarev/php-funpay-sms-parser library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

antonkomarev / php-funpay-sms-parser example snippets


$message = '
    Пароль: 0823
    Спишется 100,85р.
    Перевод на счет 410017080996934
';

$parsedMessage = new \AK\FunPay\SmsParser\Parser($message);

$parsedMessage->account(): string

$parsedMessage->moneyAmount(): float

$parsedMessage->pin(): string
sh
$ git clone [email protected]:antonkomarev/php-funpay-sms-parser.git && cd ./php-funpay-sms-parser
sh
$ php public/demo.php