Persian faker for laravel

v1.5 2019-12-06 09:37 UTC

This package is auto-updated.

Last update: 2023-11-26 11:23:46 UTC


Persian faker package for laravel


Install package with composer

composer require hatamiarash7/persian-faker


Function Description
PFaker::firstName() Return a random first name
PFaker::lastName() Return a random last name
PFaker::fullName() Return a random full name
PFaker::company() Return a random company name
PFaker::mobile() Return a random mobile number
PFaker::telephone() Return a random telephone number
PFaker::email() Return a random email address
PFaker::domain() Return a random domain like: https://www.test.ir
PFaker::age($min,$max) Return a random age. you can use $min and $max but they are nullable
PFaker::birthday($sign) Return a random birthday date use $sign for replace '/' between year/month/day
PFaker::address() Return a random postal address
PFaker::city() Return a random city of iran name
PFaker::state() Return a random state of iran name
PFaker::melliCode() Return a random 10 integer
PFaker::word() Return a random word
PFaker::sentence() Return a random sentence
PFaker::paragraph() Return a random paragraph

More functions are coming ...





If you want to add new functions :

  1. Fork repository !
  2. Create your feature branch : git checkout -b my-new-functions
  3. Commit your changes : git commit -am 'Add some functions'
  4. Push to the branch : git push origin my-new-functions
  5. Submit a pull request :D


Each project may have many problems. Contributing to the better development of this project by reporting them.