PHPackages                             tomeasterbrook/livewire-fakeable - 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. tomeasterbrook/livewire-fakeable

ActiveLibrary

tomeasterbrook/livewire-fakeable
================================

Fill your Livewire component state with realistic fake data during local development.

v1.0.0(1mo ago)01↑2900%MITPHPPHP ^8.1CI passing

Since Apr 5Pushed 1mo agoCompare

[ Source](https://github.com/TomEasterbrook/livewire-fakeable)[ Packagist](https://packagist.org/packages/tomeasterbrook/livewire-fakeable)[ Docs](https://github.com/TomEasterbrook/livewire-fakeable)[ GitHub Sponsors](https://github.com/:vendor_name)[ RSS](/packages/tomeasterbrook-livewire-fakeable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (14)Versions (2)Used By (0)

 [![Livewire Fakeable](docs/img/logo.png)](docs/img/logo.png)

 [![GitHub Workflow Status](https://camo.githubusercontent.com/82054e1f3453794cc10b098ad054db31374a0fc5b12fdc569e10fcf806d8dad0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f546f6d45617374657262726f6f6b2f6c697665776972652d66616b6561626c652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/TomEasterbrook/livewire-fakeable/actions) [![Total Downloads](https://camo.githubusercontent.com/1f32899b2d2c4f370631545bf99d581daf6b5965b56094ac494fcdc3a72a94d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f6d65617374657262726f6f6b2f6c697665776972652d66616b6561626c653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tomeasterbrook/livewire-fakeable) [![Latest Version](https://camo.githubusercontent.com/634b31c63ce2d245a7028b2c7d6c384161e9e9482855333e001dac7f595fec38/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f6d65617374657262726f6f6b2f6c697665776972652d66616b6561626c653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tomeasterbrook/livewire-fakeable) [![License](https://camo.githubusercontent.com/c9f9fc961417c2b1b7412dc5d198999945bd8af88942946a5169400aa7cce06a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f6d65617374657262726f6f6b2f6c697665776972652d66616b6561626c653f7374796c653d666c61742d737175617265)](LICENSE.md)

---

> **Livewire 4.** Fill empty component state with [Faker](https://fakerphp.org/formatters/) while you build — after `mount`, only on your machine, never overwriting values you already set.

**Livewire Fakeable** is a focused Laravel package with a simple idea: declare fake data next to your Livewire properties, and let a component hook apply it when it is safe. No seeding scripts scattered across `mount()` methods, and no guessing whether you are looking at real or dummy data.

Installation
------------

[](#installation)

```
composer require tomeasterbrook/livewire-fakeable
```

The service provider is discovered automatically. Publish the config if you want to change locale, hosts, or the on-page indicator:

```
php artisan vendor:publish --tag="livewire-fakeable-config"
```

Quick start
-----------

[](#quick-start)

Annotate public properties with `#[Fakeable]` and a [Faker formatter](https://fakerphp.org/formatters/) name. Empty properties are filled after `mount` — only in local dev, never overwriting values you already set.

```
use Livewire\Component;
use TomEasterbrook\LivewireFakeable\Attributes\Fakeable;

class EditProfilePage extends Component
{
    #[Fakeable('name')]
    public string $name = '';

    #[Fakeable('safeEmail')]
    public string $email = '';

    #[Fakeable('paragraph')]
    public string $bio = '';
}
```

Use `#[Fakeable]` without a formatter to infer one automatically from the property name, type, or enum.

See the [full documentation](https://tomeasterbrook.github.io/livewire-fakeable/) for array shapes, state classes, Form objects, seeds, locale, and more.

Safety
------

[](#safety)

Faking only runs when **all** of these are true — otherwise the package does nothing:

- `enabled` is `true` in config
- App environment is `local`
- Request host matches an `allowed_hosts` glob (e.g. `*.test`)
- `Faker\Generator` is available

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md).

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md).

Security
--------

[](#security)

Please see [our security policy](../../security/policy).

Credits
-------

[](#credits)

- [Tom Easterbrook](https://github.com/TomEasterbrook)
- [All Contributors](../../contributors)

License
-------

[](#license)

Livewire Fakeable is open-sourced software licensed under the **[MIT license](https://opensource.org/licenses/MIT)**.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance91

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.8% 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

Unknown

Total

1

Last Release

46d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5488110?v=4)[Tom Easterbrook](/maintainers/TomEasterbrook)[@TomEasterbrook](https://github.com/TomEasterbrook)

---

Top Contributors

[![TomEasterbrook](https://avatars.githubusercontent.com/u/5488110?v=4)](https://github.com/TomEasterbrook "TomEasterbrook (44 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

laravelfakerlivewirelivewire-fakeablefakeable

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/tomeasterbrook-livewire-fakeable/health.svg)

```
[![Health](https://phpackages.com/badges/tomeasterbrook-livewire-fakeable/health.svg)](https://phpackages.com/packages/tomeasterbrook-livewire-fakeable)
```

###  Alternatives

[spatie/livewire-filepond

Upload files using Filepond in Livewire components

307452.7k3](/packages/spatie-livewire-filepond)[leandrocfe/filament-apex-charts

Apex Charts integration for Filament PHP.

4891.2M8](/packages/leandrocfe-filament-apex-charts)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4111.0M4](/packages/spatie-laravel-livewire-wizard)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

81270.3k4](/packages/ralphjsmit-livewire-urls)[codebar-ag/laravel-filament-json-field

A Laravel Filament JSON Field integration with CodeMirror support

1124.1k](/packages/codebar-ag-laravel-filament-json-field)

PHPackages © 2026

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