PHPackages                             adamthehutt/eloquent-constructed-event - 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. adamthehutt/eloquent-constructed-event

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

adamthehutt/eloquent-constructed-event
======================================

Eloquent model trait to add a 'constructed' event, which will fire immediately after object construction

v1.3.0(5y ago)01.9k2MITPHPCI failing

Since Jul 22Pushed 5y agoCompare

[ Source](https://github.com/adamthehutt/eloquent-constructed-event)[ Packagist](https://packagist.org/packages/adamthehutt/eloquent-constructed-event)[ RSS](/packages/adamthehutt-eloquent-constructed-event/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (2)

Eloquent Constructed Event
==========================

[](#eloquent-constructed-event)

Eloquent model trait to add a 'constructed' event, which will fire immediately after object construction

Install
=======

[](#install)

`composer require adamthehutt/eloquent-constructed-event`

Use
===

[](#use)

Add the trait to an Eloquent model:

```
class MyModel extends Model
{
    use AdamTheHutt\EloquentConstructedEvent\HasConstructedEvent;
}
```

Do interesting things after model construction:

```
public static function boot()
{
    static::registerModelEvent("constructed", function (MyModel $model) {
        $model->generateUuid();
        $model->tellTheWorldIExist();
    });
}
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

4

Last Release

2107d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/57567?v=4)[Adam Huttler](/maintainers/adamthehutt)[@adamthehutt](https://github.com/adamthehutt)

---

Top Contributors

[![adamthehutt](https://avatars.githubusercontent.com/u/57567?v=4)](https://github.com/adamthehutt "adamthehutt (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/adamthehutt-eloquent-constructed-event/health.svg)

```
[![Health](https://phpackages.com/badges/adamthehutt-eloquent-constructed-event/health.svg)](https://phpackages.com/packages/adamthehutt-eloquent-constructed-event)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M342](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M23](/packages/yajra-laravel-oci8)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

198321.1k](/packages/fumeapp-modeltyper)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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