PHPackages                             joemugen/eloquenty-model - 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. joemugen/eloquenty-model

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

joemugen/eloquenty-model
========================

A Laravel eloquent-like model class, for Laravel and other frameworks

1.1.0(3y ago)03.8kMITPHPPHP ^8.0|^8.1

Since Dec 23Pushed 3y ago2 watchersCompare

[ Source](https://github.com/joemugen/eloquenty-model)[ Packagist](https://packagist.org/packages/joemugen/eloquenty-model)[ Docs](https://github.com/joemugen/eloquenty-model)[ RSS](/packages/joemugen-eloquenty-model/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (9)Versions (3)Used By (0)

Model
=====

[](#model)

This model provides a Laravel eloquent-like base class that can be used to build custom models in Laravel or other frameworks.

Features
--------

[](#features)

- Accessors and mutators
- Model to Array and JSON conversion
- Hidden attributes in Array/JSON conversion
- Guarded and fillable attributes
- Appending accessors and mutators to Array/JSON conversion
- Attribute casting

You can read more about these features and the original Eloquent model on

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

[](#installation)

Install using composer:

```
composer require joemugen/eloquenty-model
```

Example
-------

[](#example)

```
use JoeMugen\EloquentyModel\Model;

class User extends Model {
    protected $hidden = ['password'];
    protected $guarded = ['password'];
    protected $casts = ['age' => 'integer'];

    public function save()
    {
        return API::post('/items', $this->attributes);
    }

    public function setBirthdayAttribute($value)
    {
        $this->attributes['birthday'] = strtotime($value);
    }

    public function getBirthdayAttribute($value)
    {
        return new DateTime("@$value");
    }

    public function getAgeAttribute($value)
    {
        return $this->birthday->diff(new DateTime('now'))->y;
    }
}

$item = new User(['name' => 'John']);
$item->password = 'secret';

echo $item; // {"name":"John"}
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

1415d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.1.0PHP ^8.0|^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14120614?v=4)[Joe FRANCOIS](/maintainers/joemugen)[@joemugen](https://github.com/joemugen)

---

Top Contributors

[![joemugen](https://avatars.githubusercontent.com/u/14120614?v=4)](https://github.com/joemugen "joemugen (2 commits)")

---

Tags

laravelmodeleloquent

### Embed Badge

![Health badge](/badges/joemugen-eloquenty-model/health.svg)

```
[![Health](https://phpackages.com/badges/joemugen-eloquenty-model/health.svg)](https://phpackages.com/packages/joemugen-eloquenty-model)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.9M11.5k](/packages/illuminate-database)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M94](/packages/mongodb-laravel-mongodb)[psalm/plugin-laravel

Psalm plugin for Laravel

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

The official AI SDK for Laravel.

1.0k3.2M186](/packages/laravel-ai)[watson/validating

Eloquent model validating trait.

9803.5M53](/packages/watson-validating)[moonshine/moonshine

Laravel administration panel

1.3k253.1k79](/packages/moonshine-moonshine)

PHPackages © 2026

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