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

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

ivopetkov/data-object
=====================

A familiar and powerful data object abstraction for PHP

v1.12.0(5mo ago)58.1k↑25%2[1 issues](https://github.com/ivopetkov/data-object/issues)10MITPHPPHP 8.0.\*|8.1.\*|8.2.\*|8.3.\*|8.4.\*|8.5.\*

Since Jan 13Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/ivopetkov/data-object)[ Packagist](https://packagist.org/packages/ivopetkov/data-object)[ Docs](https://github.com/ivopetkov/data-object)[ Fund](https://www.paypal.me/ivopetkovcom)[ GitHub Sponsors](https://github.com/ivopetkov)[ RSS](/packages/ivopetkov-data-object/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (59)Used By (10)

Data Object
===========

[](#data-object)

A familiar and powerful Data Object abstraction for PHP.

[![Latest Stable Version](https://camo.githubusercontent.com/afae0bc6faac46e537317a0adc859621e061c1139dd319a7a2630b40202e1bc7/68747470733a2f2f706f7365722e707567782e6f72672f69766f7065746b6f762f646174612d6f626a6563742f762f737461626c65)](https://packagist.org/packages/ivopetkov/data-object)[![License](https://camo.githubusercontent.com/d25d096b84ca62dba29ca2d9d7e9e32d5b149c85cf3be144cff8b783e2b208bf/68747470733a2f2f706f7365722e707567782e6f72672f69766f7065746b6f762f646174612d6f626a6563742f6c6963656e7365)](https://packagist.org/packages/ivopetkov/data-object)

Usage
-----

[](#usage)

Create an objects list from array:

```
use \IvoPetkov\DataList;

$data = [
    ['value' => 'a'],
    ['value' => 'b'],
    ['value' => 'c']
];
$list = new DataList($data);

// Can access the objects by index and get properties the following ways
echo $list[0]->value; // Output: a
echo $list[1]->value; // Output: b

// Can loop through the objects
foreach($list as $object){
    echo $object->value;
}
```

And here are same helpful methods to modify the list:

```
use \IvoPetkov\DataList;

$list = new DataList([...]);
$list
    ->filterBy('property1', '...')
    ->sortBy('property2')
    ->map(function($object){});
```

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

[](#install-via-composer)

```
composer require ivopetkov/data-object
```

Documentation
-------------

[](#documentation)

Full [documentation](https://github.com/ivopetkov/data-object/blob/master/docs/markdown/index.md) is available as part of this repository.

License
-------

[](#license)

This project is licensed under the MIT License. See the [license file](https://github.com/ivopetkov/data-object/blob/master/LICENSE) for more information.

Contributing
------------

[](#contributing)

Feel free to open new issues and contribute to the project. Let's make it awesome and let's do in a positive way.

Authors
-------

[](#authors)

This library is created and maintained by [Ivo Petkov](https://github.com/ivopetkov/) ([ivopetkov.com](https://ivopetkov.com)) and some [awesome folks](https://github.com/ivopetkov/data-object/graphs/contributors).

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance67

Regular maintenance activity

Popularity28

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity94

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 98.1% 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 ~57 days

Recently: every ~86 days

Total

58

Last Release

163d ago

Major Versions

v0.9.0 → v1.0.02021-01-01

PHP version history (9 changes)v0.1.0PHP &gt;=5.5.0

v0.5.7PHP &gt;=7.1

v1.0.3PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*

v1.1.0PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*|8.1.\*

v1.3.0PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*|8.1.\*|8.2.\*

v1.5.0PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*|8.1.\*|8.2.\*|8.3.\*

v1.7.0PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*|8.1.\*|8.2.\*|8.3.\*|8.4.\*

v1.9.0PHP 8.0.\*|8.1.\*|8.2.\*|8.3.\*|8.4.\*

v1.12.0PHP 8.0.\*|8.1.\*|8.2.\*|8.3.\*|8.4.\*|8.5.\*

### Community

Maintainers

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

---

Top Contributors

[![ivopetkov](https://avatars.githubusercontent.com/u/13205385?v=4)](https://github.com/ivopetkov "ivopetkov (155 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (3 commits)")

---

Tags

data-collectiondata-listdata-objectfiltersortdatadata objectdata list

### Embed Badge

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

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

###  Alternatives

[fakerphp/faker

Faker is a PHP library that generates fake data for you.

4.0k358.5M3.5k](/packages/fakerphp-faker)[dflydev/dot-access-data

Given a deep data structure, access data by dot notation.

720359.1M86](/packages/dflydev-dot-access-data)[mbezhanov/faker-provider-collection

A collection of custom providers for the Faker library

2138.6M24](/packages/mbezhanov-faker-provider-collection)[php-units-of-measure/php-units-of-measure

A PHP library for converting between standard units of measure.

3123.4M20](/packages/php-units-of-measure-php-units-of-measure)[amenadiel/jpgraph

Composer Friendly, full refactor of JpGraph, library to make graphs and charts

1492.2M7](/packages/amenadiel-jpgraph)[jbzoo/data

An extended version of the ArrayObject object for working with system settings or just for working with data arrays

891.6M23](/packages/jbzoo-data)

PHPackages © 2026

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