PHPackages                             baddum/model418 - 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. baddum/model418

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

baddum/model418
===============

A library for a simple &amp; explicit model couch

v1.2.0(11y ago)226[12 issues](https://github.com/Baddum/Model418/issues)MITPHPPHP &gt;=5.4.0

Since Nov 10Pushed 11y agoCompare

[ Source](https://github.com/Baddum/Model418)[ Packagist](https://packagist.org/packages/baddum/model418)[ Docs](https://github.com/Elephant418/Model418)[ RSS](/packages/baddum-model418/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (7)Used By (0)

Model418
========

[](#model418)

[![Latest Stable Version](https://camo.githubusercontent.com/260eb0adb135b3c4afaf244a6ab63200ebd8402de2dd600131fd7613583eb136/68747470733a2f2f706f7365722e707567782e6f72672f62616464756d2f6d6f64656c3431382f762f737461626c652e737667)](https://github.com/Baddum/Model418)[![Build Status](https://camo.githubusercontent.com/b60f82b9a07a33d061e84273e2a9a1bd48fe10eba37f68815b989ebd1667fae0/68747470733a2f2f7472617669732d63692e6f72672f42616464756d2f4d6f64656c3431382e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Baddum/Model418)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c3432687a8e5a8aa113d0c146e89093b19910ac76008a85be9f370bd6d9492e7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f42616464756d2f4d6f64656c3431382f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Baddum/Model418/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/ce32553805c6ae227dcc6a32263cb44396d363bb4f2bd99117de0d75328d259b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f42616464756d2f4d6f64656c3431382f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Baddum/Model418/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/4e4ffa9f2f4b172b4fdfaf007fc86b7529b724e200677def9082ff21582068a5/68747470733a2f2f706f7365722e707567782e6f72672f62616464756d2f6d6f64656c3431382f646f776e6c6f6164732e737667)](https://packagist.org/packages/baddum/model418)[![License](https://camo.githubusercontent.com/bddc1e9603c5800f5b88fb40b4dc451c645a1e4f53e7875bb0a87a0b8c86aa57/68747470733a2f2f706f7365722e707567782e6f72672f62616464756d2f6d6f64656c3431382f6c6963656e73652e737667)](http://opensource.org/licenses/MIT)

Model418 is a nice-to-use &amp; highly flexible `ORM`.
It maps your data, from a database or another source, and its relationships into accessible objects.
It could be used with or without a framework.

1. [Features](#features)
2. [Let's code](#lets-code)
3. [How to Install](#how-to-install)
4. [How to Contribute](#how-to-contribute)
5. [Author &amp; Community](#author--community)

Features
--------

[](#features)

For now, Model418 supports only the following storage:

- File System:
    - Encoding: in Yaml (default), JSON, Text or Markdown
    - Subfile: Write the data of an attribute in another file
    - Multi folders: Use multiple folders, like plugins folder
- Session System

[↑ top](#readme)

Let's code
----------

[](#lets-code)

```
// Save a new Model
$user = (new UserModel)
    ->set('firstName', 'John')
    ->save();

// Retrieve all models
$userList = (new UserModel)->query()->fetchAll();
count($userList) // 1

// Retrieve by primary key
$john = (new UserModel)->query()->fetchById(1);

// Update an existing Model
$john->set('lastName', 'Doe')
    ->save();

// Delete an existing Model
$john->delete();
```

To go further, you should read [the complete documentation](https://github.com/Baddum/Model418/blob/master/doc/Index.md).

[↑ top](#readme)

How to Install
--------------

[](#how-to-install)

This library package requires `PHP 5.4` or later.
Install [Composer](http://getcomposer.org/doc/01-basic-usage.md#installation) and run the following command to get the latest version:

```
composer require baddum/model418:1.2.*
```

[↑ top](#readme)

How to Contribute
-----------------

[](#how-to-contribute)

### Get involved

[](#get-involved)

1. [Star](https://github.com/baddum/model418/stargazers) the project!
2. [Report a bug](https://github.com/baddum/model418/issues/new) that you find
3. Tweet and blog about Model418 and [Let me know](https://twitter.com/iamtzi) about it.

### Pull Requests

[](#pull-requests)

Pull requests are highly appreciated.
Please review the [guidelines for contributing](https://github.com/Baddum/Model418/blob/master/CONTRIBUTING.md) to go further.

[↑ top](#readme)

Author &amp; Community
----------------------

[](#author--community)

Model418 is under [MIT License](http://opensource.org/licenses/MIT).
It was created &amp; is maintained by [Thomas ZILLIOX](http://tzi.fr).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

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

Total

6

Last Release

4093d ago

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

v1.1.2PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dd01ef560c81cff6d288330b80a88f6728cf4f2b6fc6f5ab19dacde2f1cda06?d=identicon)[tzi](/maintainers/tzi)

---

Top Contributors

[![tzi](https://avatars.githubusercontent.com/u/415891?v=4)](https://github.com/tzi "tzi (122 commits)")

---

Tags

model

### Embed Badge

![Health badge](/badges/baddum-model418/health.svg)

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

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[prettus/l5-repository

Laravel 5|6|7|8|9|10|11|12 - Repositories to the database layer

4.2k10.8M145](/packages/prettus-l5-repository)[spatie/laravel-translatable

A trait to make an Eloquent model hold translations

2.4k23.0M413](/packages/spatie-laravel-translatable)[spatie/eloquent-sortable

Sortable behaviour for eloquent models

1.5k22.9M268](/packages/spatie-eloquent-sortable)[venturecraft/revisionable

Keep a revision history for your models without thinking, created as a package for use with Laravel

2.6k6.6M51](/packages/venturecraft-revisionable)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

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

PHPackages © 2026

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