glasscode / persian-faker
generate any persian content for laravel community
1.0.0
2023-04-18 05:42 UTC
Requires
- php: ^8.1
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: v8.0.11
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2026-02-24 11:27:26 UTC
README
Installation
You can install the package via composer:
composer require glasscode/persian-faker
Usage
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.
Example
$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() //Shayne@yahoo.com $faker->person()->phone() //09222770548
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.