PHPackages                             sophokles/dataobject - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sophokles/dataobject

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sophokles/dataobject
====================

Sophokles Data Object Library

1.0.0(2y ago)013GPL-3.0-or-laterPHPPHP &gt;=8.1, &lt;8.9

Since Apr 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ironAngel2000/sophokles-dataobject)[ Packagist](https://packagist.org/packages/sophokles/dataobject)[ RSS](/packages/sophokles-dataobject/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Sophokles Data Object Class
===========================

[](#sophokles-data-object-class)

Sophokles library to generate from any array a data object

Installation
------------

[](#installation)

1. Include as composer dependency using `composer require sophokles/dataobject`
2. Run `composer install` to generate the vendor class autoloader
3. The classes from `Sophokles.dataobject` can now be used in your composer project

Usage Examples
--------------

[](#usage-examples)

Small usage examples have been included in the [examples/](examples/) folder. The examples are PHP scripts which shows how the object classes work.

> 1. Define a custom model class object extending AbstractDataObject

> 2. Create a new object from your model class, use your data array in the constructor

> 3. Access to the data on your object by getters and setters

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

808d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sophokles-dataobject/health.svg)

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

###  Alternatives

[functional-php/pattern-matching

Pattern matching for PHP with automatic destructuring.

8280.1k](/packages/functional-php-pattern-matching)[hedii/laravel-date-range

A date range trait with local scope methods for Laravel Eloquent models

2140.6k](/packages/hedii-laravel-date-range)[beyondit/opencart-extension-installer

Custom Composer Installer for installing OpenCart Extensions

1020.6k6](/packages/beyondit-opencart-extension-installer)

PHPackages © 2026

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