2017 © Pedro Peláez
 

laravel faker

Persian fake data package for laravel

image

ybazli/faker

Persian fake data package for laravel

  • Saturday, February 24, 2018
  • by Ybazli
  • Repository
  • 1 Watchers
  • 4 Stars
  • 69 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 109 % Grown

The README.md

Persian Faker

Persian faker package for laravel . This package is created for testing your project with fake data not for create spam. please do not use it to create spam. New options are comming soon. Enjoy it, thanks., (*1)

Installation

Step 1

get install package with composer, (*2)

composer require ybazli/faker

Step 2

Next add this line in your 'config/app.php' in the providers array:, (*3)

Ybazli\Faker\FakerServiceProvider::class,

Step 3

Next add this line in your 'config/app.php' in the aliases array:, (*4)

'Faker' => Ybazli\Faker\Facades\Faker::class,

Done :), (*5)

Code Description
Faker::firstName() Return a random firstname
Faker::lastName() Return a random lastname
Faker::fullName() Return a random fullname
Faker::company() Return a random company name
Faker::mobile() Return a random mobile number
Faker::telephone() Return a random telephone number
Faker::email() Return a random email address
Faker::domain() Return a random domain like: https://www.blablabla.ir
Faker::age($min,$max) Return a random you can use $min and $max but thery are nullable
Faker::birthday($sign) Return a random birthday date use $sign for replace '/' between year/mounth/day
Faker::address() Return a random postal address
Faker::city() Return a random city of iran name
Faker::state() Return a random state of iran name
Faker::melliCode() Return a random 10 integer
Faker::word() Return a random word
Faker::sentence() Return a random sentence
Faker::paragraph() Return a random paragraph
Faker::productCategory() Return a random product category for use online shops
Faker::jobTitle() return a random job title
Faker::price() Return a random IRR

License

The MIT License (MIT). Please see License File for more information., (*6)

The Versions

24/02 2018

dev-master

9999999-dev

Persian fake data package for laravel

  Sources   Download

MIT

by Avatar Ybazli

22/02 2018

v1.0.1

1.0.1.0

Persian fake data package for laravel

  Sources   Download

MIT

by Avatar Ybazli

22/02 2018

v1.0

1.0.0.0

Persian fake data package for laravel

  Sources   Download

MIT

by Avatar Ybazli