PHPackages                             kosatyi/datamodel - 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. kosatyi/datamodel

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

kosatyi/datamodel
=================

PHP data access and serving class

v0.0.5(5y ago)066[3 PRs](https://github.com/kosatyi/datamodel/pulls)1MITPHP

Since Mar 27Pushed 3y agoCompare

[ Source](https://github.com/kosatyi/datamodel)[ Packagist](https://packagist.org/packages/kosatyi/datamodel)[ Docs](https://kosatyi.com/datamodel/)[ RSS](/packages/kosatyi-datamodel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (9)Used By (1)

DataModel
=========

[](#datamodel)

PHP data access and serving class

[![](https://camo.githubusercontent.com/2483b3e79e54ed75d313a3f26986c6215eda62c26d1107dd8c8e262c24555804/68747470733a2f2f706f7365722e707567782e6f72672f6b6f73617479692f646174616d6f64656c2f76657273696f6e)](https://packagist.org/packages/kosatyi/datamodel)[![](https://camo.githubusercontent.com/bf2a4af0ec46cb81caa6b3fc17b37a2c2142fc31f3096cd43dab31a9f560e8d3/68747470733a2f2f706f7365722e707567782e6f72672f6b6f73617479692f646174616d6f64656c2f646f776e6c6f616473)](https://packagist.org/packages/kosatyi/datamodel)[![](https://camo.githubusercontent.com/bbc8128b6f27ba013ecf91146d51cef10efedfa05c4ceb8961f29afe401be602/68747470733a2f2f706f7365722e707567782e6f72672f6b6f73617479692f646174616d6f64656c2f6c6963656e7365)](https://packagist.org/packages/kosatyi/datamodel)

If you just want to access the array of model data from the context of a container object, you should use either the `attr` method

```
    use Kosatyi\DataModel as Model;
    $model = new Model();
    $model->data([
        'prop' => 'value',
        'list' => [
            'item0','item1','item2'
        ],
        'map'  = [
            'prop1'=> 'value1',
            'prop2'=> 'value2'
        ]
    ]);
    echo $model->attr('prop1');
    echo $model->attr('list.0');
    echo $model->attr('map.prop1');
    $model->attr('list.1','item1-changed');
    $model->attr('prop','value-changed');
    $model->attr('map.prop2','value2');
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.9% 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 ~251 days

Total

5

Last Release

1965d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ffce18038170342c081e37ad729bdca12af24be276266934a9007b8ef07df0b0?d=identicon)[kosatyi](/maintainers/kosatyi)

---

Top Contributors

[![kosatyi](https://avatars.githubusercontent.com/u/2576449?v=4)](https://github.com/kosatyi "kosatyi (188 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

datamodelphp

### Embed Badge

![Health badge](/badges/kosatyi-datamodel/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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