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

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

ypppa/model
===========

Abstract Eloquent style Model.

v1.4.0(7y ago)03.1kMITPHPPHP &gt;=7.1

Since Oct 29Pushed 7y ago2 watchersCompare

[ Source](https://github.com/moneyworks/Model)[ Packagist](https://packagist.org/packages/ypppa/model)[ RSS](/packages/ypppa-model/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Abstract eloquent-like entity Model
===================================

[](#abstract-eloquent-like-entity-model)

[![SensioLabsInsight](https://camo.githubusercontent.com/f55831439bf17966bebb63586849354a710abe73a0689f07966bbd02f6d07479/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35633936346230662d346130622d343034662d393733342d3264636266633966376635652f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/5c964b0f-4a0b-404f-9734-2dcbfc9f7f5e)

This model provides an 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
- Appending accessors and mutators to Array/JSON conversion
- Guard/Unguard attributes from mass assign
- Attribute casting
- Control attributes case in Array/JSON representation

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

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 84.6% 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 ~650 days

Total

3

Last Release

2600d ago

PHP version history (2 changes)v1.2PHP &gt;=5.5.9

v1.4.0PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5552596?v=4)[George Younger](/maintainers/ypppa)[@ypppa](https://github.com/ypppa)

---

Top Contributors

[![ypppa](https://avatars.githubusercontent.com/u/5552596?v=4)](https://github.com/ypppa "ypppa (11 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198741.5k12](/packages/pgvector-pgvector)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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