metif12/laravel-farsi is a Laravel package for laravel farsi tools.
It currently has 0 GitHub stars and 16 downloads on Packagist (latest version 0.1.4).
Install it with composer require metif12/laravel-farsi.
Discover more Laravel packages by metif12
or browse all Laravel packages to compare alternatives.
Last updated
laravel farsi tool package
Via Composer
composer require metif12/laravel-farsi
convert latin and arabic numbers of given text to farsi numbers
echo farsi_num('123') \\ Output: ۱۲۳
convert farsi and arabic numbers of given text to latin numbers
echo farsi_num('۱۲۳') \\ Output: 123
convert specified characters defined in config file by fixing rule
convert result of Request::input($name,$default = null) by farsi helper
Request::farsi($name,$default = null)
convert result of Request::old($name,$default = null) by farsi helper
Request::oldFarsi($name,$default = null)
convert result of Request::post($name,$default = null) by farsi helper
Request::postFarsi($name,$default = null)
convert result of Request::query($name,$default = null) by farsi helper
Request::queryFarsi($name,$default = null)
persian letters are allowed
persian numbers are allowed
persian letters and numbers are allowed
persian letters and numbers are not allowed
call specified hellper on atribute befor saving
class SomModel extends Model {
use HasFarsiAttributes;
protected $farsiAttributes = ['name'=>'farsi'];
}