Git Product home page Git Product logo

faker's Introduction

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.

Installation

Step 1

get install package with composer

composer require ybazli/faker

Step 2

Next add this line in your 'config/app.php' in the providers array:

Ybazli\Faker\FakerServiceProvider::class,

Step 3

Next add this line in your 'config/app.php' in the aliases array:

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

Done :)

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.

faker's People

Contributors

ybazli avatar menkaff avatar rezaghz avatar hadi-mohseni avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.