PHPackages                             rogermedico/factory-without-events - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rogermedico/factory-without-events

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rogermedico/factory-without-events
==================================

Allows to create Laravel factory without the previously defined afterCreating or afterMaking callbacks.

1.0(2y ago)03MITPHPPHP ^8.0

Since Feb 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rogermedico/factory-without-events)[ Packagist](https://packagist.org/packages/rogermedico/factory-without-events)[ Docs](https://github.com/rogermedico/factory-without-events)[ RSS](/packages/rogermedico-factory-without-events/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Factory without events
======================

[](#factory-without-events)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8cfa4e7007c8bb3c74204fa6371a61e43561690fa87fe7aee8db0653860989a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6765726d656469636f2f666163746f72792d776974686f75742d6576656e7473)](https://camo.githubusercontent.com/8cfa4e7007c8bb3c74204fa6371a61e43561690fa87fe7aee8db0653860989a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6765726d656469636f2f666163746f72792d776974686f75742d6576656e7473)[![GitHub Tests Action Status](https://camo.githubusercontent.com/520354fda4623fcdfe66e5b78b5673e2e2e8398a162d7ef0ce93ed4d872f636a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f726f6765726d656469636f2f666163746f72792d776974686f75742d6576656e74732f72756e2d74657374732e796d6c)](https://camo.githubusercontent.com/520354fda4623fcdfe66e5b78b5673e2e2e8398a162d7ef0ce93ed4d872f636a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f726f6765726d656469636f2f666163746f72792d776974686f75742d6576656e74732f72756e2d74657374732e796d6c)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/1358b14663fa4d37bde1ab8c0d1d4ac62ced986cba1e161d3ebed9ce9a692574/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f726f6765726d656469636f2f666163746f72792d776974686f75742d6576656e74732f72756e2d7068707374616e2e796d6c)](https://camo.githubusercontent.com/1358b14663fa4d37bde1ab8c0d1d4ac62ced986cba1e161d3ebed9ce9a692574/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f726f6765726d656469636f2f666163746f72792d776974686f75742d6576656e74732f72756e2d7068707374616e2e796d6c)[![Total Downloads](https://camo.githubusercontent.com/2cc7d4680f4c8d28c878c4f0198948dfff79de5636b3868adf06b3ed40b5f635/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f6765726d656469636f2f666163746f72792d776974686f75742d6576656e7473)](https://camo.githubusercontent.com/2cc7d4680f4c8d28c878c4f0198948dfff79de5636b3868adf06b3ed40b5f635/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f6765726d656469636f2f666163746f72792d776974686f75742d6576656e7473)

---

This repo can be used to make or create Laravel factories without execution of previously created afterMaking and afterCreating callbacks.

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

[](#installation)

You can install the package via composer:

```
composer require rogermedico/factory-without-events
```

Usage
-----

[](#usage)

Make your factory as usual and add the WithoutEvents trait to it. Then in your code if you want to make/create a factory without executing afterMake or afterCreate callbacks do it like this:

```
$user = User::factory()
    ->withoutEvents()
    ->create();
```

Credits
-------

[](#credits)

- [Roger Medico](https://github.com/rogermedico)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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 ~0 days

Total

2

Last Release

872d ago

Major Versions

0.1 → 1.02024-02-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/a251f1b831ec9eb80bc084a673801b0c7ca4fb6f15b2099fec7c246bd16768ea?d=identicon)[roger119](/maintainers/roger119)

---

Top Contributors

[![rogermedico](https://avatars.githubusercontent.com/u/2758290?v=4)](https://github.com/rogermedico "rogermedico (10 commits)")

---

Tags

laravelfactoryrogermedicoaftercreatingaftermaking

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rogermedico-factory-without-events/health.svg)

```
[![Health](https://phpackages.com/badges/rogermedico-factory-without-events/health.svg)](https://phpackages.com/packages/rogermedico-factory-without-events)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[offload-project/laravel-toggle

A simple and flexible feature toggle (feature flag) package for Laravel

251.6k](/packages/offload-project-laravel-toggle)[promethys/revive

A 'RecycleBin' page where users can restore or delete permanently soft-deleted models.

162.9k](/packages/promethys-revive)

PHPackages © 2026

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