PHPackages                             zachleigh/fake-better - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. zachleigh/fake-better

AbandonedArchivedProject[Testing &amp; Quality](/categories/testing)

zachleigh/fake-better
=====================

Faker provider to use more realistic fake data, extensive Laravel support.

v0.1.4(6y ago)020MITPHPCI failing

Since Apr 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/zachleigh/fake-better)[ Packagist](https://packagist.org/packages/zachleigh/fake-better)[ Docs](https://github.com/zachleigh/fake-better)[ RSS](/packages/zachleigh-fake-better/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (6)Used By (0)

Fake Better
===========

[](#fake-better)

Because Lorem Ipsum sucks sometimes.

Contents
--------

[](#contents)

- [About](#about)
- [Install](#install)
- [Usage](#usage)
- [Laravel Support](#laravel-support)
- [Contributing](#contributing)

About
-----

[](#about)

This package lets you define real copy to use in Faker instead Lorem Ipsum. You only need to add the included Copy Faker provider to Faker.

Install
-------

[](#install)

This pacakge requires [Faker](https://github.com/fzaninotto/Faker).

Install via composer:

```
composer require zachleigh/fake-better
```

**If using Laravel, see the [Laravel Support section](#laravel-support).**

Once installed, you need to add the `FakeBetter\Providers\Copy` provider to your Faker instance:

```
use Faker\Generator;
use FakeBetter\Providers\Copy;

$faker = new Generator();

$copyProvider = new Copy($faker);

$copyProvider->setCopyPath('path/to/copy/directory');

$faker->addProvider($copyProvider);
```

Usage
-----

[](#usage)

In the set copy path, define any file structure you like. All files must be php files and should return an array. To access your custom copy, use the `copy` method and pass it a dot separated path to your copy:

```
$faker->copy('path.to.copy');
```

If the defined copy is an array, a random value will be returned.

Laravel Support
---------------

[](#laravel-support)

If using Laravel, register the service provider:

```
FakeBetter\Laravel\ServiceProvider::class
```

Override the default paths by importing the config:

```
php artisan vendor:publish --provider="FakeBetter\Laravel\ServiceProvider" --tag="config"
```

Create new copy files:

```
php artisan make:faker-copy my/original/copy/file
```

In addition to the Copy provider, this package also allows you to easily create custom Faker providers:

```
php artisan make:faker-provider CustomProvider
```

Contributing
------------

[](#contributing)

Contributions are more than welcome. Fork, improve and make a pull request.

For bugs, ideas for improvement or other, please create an [issue](https://github.com/zachleigh/laravel-property-bag/issues).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~140 days

Total

5

Last Release

2389d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00a76b63e84a85f8770b1b02b1190c03400c48528f0c33262f7789d35eca875d?d=identicon)[zachleigh](/maintainers/zachleigh)

---

Top Contributors

[![zachleigh](https://avatars.githubusercontent.com/u/5616626?v=4)](https://github.com/zachleigh "zachleigh (28 commits)")

---

Tags

testinglaravelfakercopycustomfaker-providerreal copy

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zachleigh-fake-better/health.svg)

```
[![Health](https://phpackages.com/badges/zachleigh-fake-better/health.svg)](https://phpackages.com/packages/zachleigh-fake-better)
```

###  Alternatives

[laracasts/testdummy

Easy test stubs

4671.4M36](/packages/laracasts-testdummy)[davestewart/sketchpad

An innovative front-end environment for interactive Laravel development

29512.9k1](/packages/davestewart-sketchpad)[guanguans/laravel-soar

SQL optimizer and rewriter for laravel. - laravel 的 SQL 优化器和重写器。

2227.8k](/packages/guanguans-laravel-soar)[hyvor/laravel-playwright

Laravel and Playwright E2E Testing

3312.0k](/packages/hyvor-laravel-playwright)[srlabs/laravel-testing-utilities

Helper utilities for testing Laravel Applications

1011.9k](/packages/srlabs-laravel-testing-utilities)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
