You can install the package via composer:
composer require glasscode/persian-faker
Create fake data Use GlassCode\PersianFaker\PersianFaker
to create and initialize a faker generator, which can generate data by calling methods named after the type of data you want.
$faker = \GlassCode\PersianFaker\PersianFaker::create();
// simple text
$faker->text()->word() //ساعت
$faker->text()->sentence() //تاریخ دو بار تکرار میشود : یکی به صورت تراژدی و دیگری به صورت کمدی.
$faker->text()->paragraph() // متن طولانی
// locations type
$faker->location()->state() //تهران
$faker->location()->country() //آفریقای جنوبی
$faker->location()->address() //خیابان آزادی ،نبش خیابان رودکی
// payments info
$faker->payment()->bank() //بانک صادرات
$faker->payment()->sheba() //IR222858082460621046509226
$faker->payment()->cardNumber() //4563440120604719
// Person info
$faker->person()->job() //آرایشگر
$faker->person()->name() //علی
$faker->person()->lastName() // کریمی
$faker->person()->certificate() //لیسانس
$faker->person()->email() //[email protected]
$faker->person()->phone() //09222770548
composer test
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.