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

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

kore/data-object
================

Simple base class for data objects.

1.3(6y ago)111.2M—10%4[1 issues](https://github.com/kore/DataObject/issues)7MITPHPCI failing

Since Jun 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kore/DataObject)[ Packagist](https://packagist.org/packages/kore/data-object)[ RSS](/packages/kore-data-object/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (7)Used By (7)

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

[](#data-object)

[![Travis Build Status](https://camo.githubusercontent.com/231e4d5d6e77a61cdccaf94f0eb006e1ab434c664ec9bc9feadcdeab8f9be06c/68747470733a2f2f7472617669732d63692e6f72672f6b6f72652f446174614f626a6563742e737667 "Travis Build Status")](https://travis-ci.org/kore/DataObject)

This repository just contains a simple base class for PHP data objects.

This class throws exceptions if you try to read or write unknown properties, and ensures a clone is performed recursively.

Usage
-----

[](#usage)

To use this data object base class for your own data objects, just use something like this:

```
class Person extends \Kore\DataObject\DataObject
{
    public $prename;

    public $forename;
}
```

If you now access unknown properties you will get exceptions. For more details on the motivation behind this, read: [http://qafoo.com/blog/016\_struct\_classes\_in\_php.html](http://qafoo.com/blog/016_struct_classes_in_php.html)

In some cases it might be necessary that additional attributes can be passed while construction and are knowingly ignored and not added to the DataObject. Therefore a constructor parameter `$ignoreAdditionalAttributes` has been added, which is set to `false` by default, but could be set to `true` in the rare cases when needed. This will allow to create a DataObject of an array with more values where the additional values will be ignored and no exception will be thrown **during** construction. If you later try to access a property which is not existing though, an exception will be raised!

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 74.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 ~386 days

Recently: every ~482 days

Total

6

Last Release

2425d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b4beabbad777c5b6522018525666cc9ce96d3abcd9e702fccacde178951737c?d=identicon)[kore](/maintainers/kore)

---

Top Contributors

[![kore](https://avatars.githubusercontent.com/u/154398?v=4)](https://github.com/kore "kore (20 commits)")[![schaumiii](https://avatars.githubusercontent.com/u/654148?v=4)](https://github.com/schaumiii "schaumiii (6 commits)")[![tobyS](https://avatars.githubusercontent.com/u/187140?v=4)](https://github.com/tobyS "tobyS (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

PHPackages © 2026

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