zualex/parsertext
Composer 安装命令:
composer require zualex/parsertext
包简介
This is a PHP class to parse the text using the template
关键字:
README 文档
README
This is a PHP class to parse the text using the template.
Installation
composer require zualex/parsertext
Exmaple
require_once __DIR__ . '/vendor/autoload.php'; use \ParserText\ParserText; $parserSms = new ParserText(' Никому не говорите пароль! Его спрашивают только мошенники. Пароль: {% password %} Перевод на счет {% receiver %} Вы потратите {% sum %}р. '); print_r($parserSms->run(' Никому не говорите пароль! Его спрашивают только мошенники. Пароль: 72946 Перевод на счет 410011068150008 Вы потратите 5025,13р. '));
Result:
[
'password' => '72946',
'receiver' => '410011068150008',
'sum' => '5025,13',
]
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-11