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 4w ago

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 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

1361d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.1.0PHP ^8.0|^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/176c7568de6c86985b30f20226877030a94f6af68622515b03718ef363bdb881?d=identicon)[joemugen](/maintainers/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

[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[watson/validating

Eloquent model validating trait.

9723.3M46](/packages/watson-validating)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[lacodix/laravel-model-filter

A Laravel package to filter, search and sort models with ease while fetching from database.

17649.9k](/packages/lacodix-laravel-model-filter)

PHPackages © 2026

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