Generate fake data on demand.

Faker PHP allows you to easily generate mock data for your tests, providing a quick and flexible way to simulate realistic data effortlessly—perfect for creating robust development and testing environments.
Terminal
composer require --dev xefi/faker-php

Start your next project with a powerful testing environment

Laravel / Symfony integrations

Fully integrates with Laravel and Symfony

Locales

Translate faker to your own language.

Powerful

Cover all your testing needs.

Lightweight

Faker weights approximately 48kB.

Auto-complete

Dynamically adapt Faker auto completion runtime.

Extensible

Install as many extensions as you'd like.

Basic usage

Instantiate Faker

  $faker = new Xefi\Faker\Faker();
  $faker->name() // John Doe
  $faker->name() // Charles Brown

  $faker->sentence() // equus canis populus servus aquaeductus fidelitas

  $faker->iban() // PX41711762752955497163783543

Get Started !

Copyright © 2024