PHPackages                             endorphin-studio/data-object - 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. endorphin-studio/data-object

ActiveLibrary

endorphin-studio/data-object
============================

Simple Library to Work with base object

1.0.2(4y ago)010MITPHPPHP &gt;= 7.4

Since Aug 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/endorphin-studio/data-object)[ Packagist](https://packagist.org/packages/endorphin-studio/data-object)[ RSS](/packages/endorphin-studio-data-object/feed)WikiDiscussions main Synced 1w ago

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

Create object from array and work with it with helper functions getFieldName(), setFieldName($value)

Code Status
-----------

[](#code-status)

[![Latest Stable Version](https://camo.githubusercontent.com/838ae4bd96970cb02458e6e657eb762b204c38cbe1ebe12ab36c9abf9290772e/68747470733a2f2f706f7365722e707567782e6f72672f656e646f727068696e2d73747564696f2f646174612d6f626a6563742f762f737461626c65)](https://packagist.org/packages/endorphin-studio/data-object)[![Total Downloads](https://camo.githubusercontent.com/fc549fb0420e01e51c068bf7a85a1d2e433f6dcea101e0eb6159ec2779155362/68747470733a2f2f706f7365722e707567782e6f72672f656e646f727068696e2d73747564696f2f646174612d6f626a6563742f646f776e6c6f616473)](https://packagist.org/packages/endorphin-studio/data-object)[![License](https://camo.githubusercontent.com/c36183ec4c3678e7a16a1c6c5866718b9b321c6529d0d2d6ca3b2c3e1ea27ff6/68747470733a2f2f706f7365722e707567782e6f72672f656e646f727068696e2d73747564696f2f646174612d6f626a6563742f6c6963656e7365)](https://packagist.org/packages/endorphin-studio/data-object)[![Build Status](https://camo.githubusercontent.com/0ffd090d9a4fb09456631ef071d997af46e001c3eeb5da6c67f5419e9b7c6804/68747470733a2f2f7472617669732d63692e6f72672f656e646f727068696e2d73747564696f2f646174612d6f626a6563742e7376673f6272616e63683d342e30)](https://travis-ci.org/endorphin-studio/data-object)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4c2293e15e6eb4f7b91b01f1f6059208f017031d2b247fc64ff9458b171cddae/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f656e646f727068696e2d73747564696f2f646174612d6f626a6563742f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/endorphin-studio/data-object/)

About
-----

[](#about)

```
Author: Serhii Nekhaienko
Email: serhii.nekhaienko@gmail.com
Stable Version: 1.0.0
License: MIT

```

Requirements
------------

[](#requirements)

```
PHP >=7.4
JSON extension

```

Install via Composer
--------------------

[](#install-via-composer)

```
composer require endorphin-studio/data-object

```

Basic Usage
-----------

[](#basic-usage)

```
use EndorphinStudio\DataObject\DataObject;

class Role extends DataObject {

}

class User extends DataObject {
    protected array $fieldTypeMapping = [
        'roles' => Role::class
    ];

    protected array $listFields = [
        'roles'
    ];
}

$userData = [
    'name' => 'Serhii',
    'login' => 'serhii',
    'roles' => [
        [
            'name' => 'admin'
        ],
        [
            'name' => 'editor'
        ]
    ]
];

$user = new User($userData);

echo $user->getName(); // Serhii
echo $user->getLogin(); // serhii

foreach($user->getRoles() as $role) {
    echo $role->getName(); // admin, editor
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

3

Last Release

1733d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/60807689997edf0b533bac694b7143571c5b4f22e307a7e21145217e2ea9b408?d=identicon)[serhiime](/maintainers/serhiime)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/endorphin-studio-data-object/health.svg)

```
[![Health](https://phpackages.com/badges/endorphin-studio-data-object/health.svg)](https://phpackages.com/packages/endorphin-studio-data-object)
```

PHPackages © 2026

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