PHPackages                             inmanturbo/modelware - 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. [Database &amp; ORM](/categories/database)
4. /
5. inmanturbo/modelware

ActiveLibrary[Database &amp; ORM](/categories/database)

inmanturbo/modelware
====================

Eloquent Modelware for laravel

v1.0.3(1y ago)1325[4 PRs](https://github.com/inmanturbo/modelware/pulls)2MITPHPPHP ^8.2CI passing

Since Aug 8Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/inmanturbo/modelware)[ Packagist](https://packagist.org/packages/inmanturbo/modelware)[ Docs](https://github.com/inmanturbo/modelware)[ RSS](/packages/inmanturbo-modelware/feed)WikiDiscussions main Synced yesterday

READMEChangelog (4)Dependencies (12)Versions (10)Used By (2)

Eloquent Modelware for laravel
==============================

[](#eloquent-modelware-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d605486d7dd9c8907b67d745fe29bcfefa8a15aabe5b8e7a9855a1cceaac567e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e6d616e747572626f2f6d6f64656c776172652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/inmanturbo/modelware)[![GitHub Tests Action Status](https://camo.githubusercontent.com/4ac2c1eeeaf0412c9c71d7db0f2313c4beb7f9c722ef631878787620bc826277/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f696e6d616e747572626f2f6d6f64656c776172652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/inmanturbo/modelware/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/8222760bb1292d2dbc08133e18dff977281150134ee458b92c277d4f3b49c0cf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f696e6d616e747572626f2f6d6f64656c776172652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/inmanturbo/modelware/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/adf9fa4834181c8067604fee00cdc4058d4ea9b4ac4f56c6e09d5d3564b906ed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e6d616e747572626f2f6d6f64656c776172652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/inmanturbo/modelware)

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

[](#installation)

You can install the package via composer:

```
composer require inmanturbo/modelware
```

Usage
-----

[](#usage)

Add modelware in the boot method of a service provider

```
use Inmanturbo\Modelware\Facades\Modelware;

Modelware::add('eloquent.updating*', [
    EnsureModelShouldBeSaved::class,
    ValidateAttributes::class,
    FillModel::class,
], prefix: 'modelware'); // modelware is the default
```

This package sends the event data through [pipelines](https://laravel.com/docs/11.x/helpers#pipeline) (similiar to middleware), which iterate through collections of invokable classes, these collections are bound into and resolved from the service container using the following syntax:

```
    app()->bind("{$prefix}.{$event}", function () use ($pipes) {
        return collect($pipes)->map(fn ($pipe) => app($pipe));
    });
```

Where the `{$event}` is a [wildcard event](https://laravel.com/docs/11.x/events#wildcard-event-listeners) for eloquent:

- `modelware.eloquent.creating*` =&gt; `eloquent.creating*`
- `modelware.eloquent.updating*` =&gt; `eloquent.updating*`
- `modelware.eloquent.deleting*` =&gt; `eloquent.deleting*`

This package will send the following data object through your custom pipeline:

```
$data = app(Data::class, [
    'event' => $events,
    'model' => $payload[0],
    'payload' => $payload,
]);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [inmanturbo](https://github.com/inmanturbo)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance62

Regular maintenance activity

Popularity13

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

4

Last Release

691d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0261babef618b8fb3bfcea84376ed5e71e7169586eb8de63a6550c2e7ea653a6?d=identicon)[inmanturbo](/maintainers/inmanturbo)

---

Top Contributors

[![inmanturbo](https://avatars.githubusercontent.com/u/47095624?v=4)](https://github.com/inmanturbo "inmanturbo (25 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

laravelinmanturbomodelware

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/inmanturbo-modelware/health.svg)

```
[![Health](https://phpackages.com/badges/inmanturbo-modelware/health.svg)](https://phpackages.com/packages/inmanturbo-modelware)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

213420.1k2](/packages/wnx-laravel-backup-restore)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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