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 21% 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

4139d ago

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

v1.1.2PHP &gt;=5.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/415891?v=4)[Thomas ZILLIOX](/maintainers/tzi)[@tzi](https://github.com/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

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[thecodingmachine/tdbm

The Database Machine is a PHP ORM that requires no configuration. The object model is deduced from the database model.

123179.3k7](/packages/thecodingmachine-tdbm)[traceway/opentelemetry-symfony

Pure-PHP OpenTelemetry instrumentation for Symfony — automatic HTTP, Console, HttpClient, Messenger, Doctrine DBAL, Cache, Twig tracing and Monolog log-trace correlation with response propagation, a lightweight Tracing helper, route templates, and semantic conventions. No C extension required (ext-protobuf recommended for production).

7812.6k](/packages/traceway-opentelemetry-symfony)

PHPackages © 2026

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