mahdimajidzadeh/persianalize
Composer 安装命令:
composer require mahdimajidzadeh/persianalize
包简介
Laravel package for normalize Persian text
README 文档
README
Persianalize use to normalize Persian input and remove arabic and other similar characters.
Install
Via Composer
$ composer require mahdimajidzadeh/persianalize
If you do not run Laravel 5.5 (or higher), then add the service provider in config/app.php:
MahdiMajidzadeh\Persianalize\PersianalizeServiceProvider:class
If you do run the package on Laravel 5.5+, package auto-discovery takes care of the magic of adding the service provider.
Usage
$result = Persian::numbers_fa('123٤٥٦'); // return ۱۲۳۴۵۶ $result = Persian::numbers_en('۱۲۳٤٥٦'); // return 123456 $result = Persian::text('ي ڲ ڬ'); // return ی گ ک $result = Persian::persian($text); // make texts and numbers Persian $result = Persian::standard($text); // make texts Persian and numbers English
Change log
Please see CHANGELOG for more information on what has changed recently.
统计信息
- 总下载量: 2.84k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-15