PHPackages                             rkr/array-object-converter - 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. rkr/array-object-converter

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

rkr/array-object-converter
==========================

A module to copy data from an array to an object, vice versa.

1.0.5.2(1y ago)44.9k↓100%MITPHPPHP &gt;= 5.3.0

Since Dec 19Pushed 1y ago2 watchersCompare

[ Source](https://github.com/rkrx/array-object-converter)[ Packagist](https://packagist.org/packages/rkr/array-object-converter)[ RSS](/packages/rkr-array-object-converter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

array-object-converter
======================

[](#array-object-converter)

A module to copy data from an array into an object, vice versa. Requires PHP 5.4+.

You have to provide information for targeted objects to describe how properties are connected to array keys. This is done through "SpecificationProvider"s.

Right now there is just one provider ready: The PhpDocSpecificationProvider extracts the annotations from the object's methods. Other providers may follow, if I find some time for that.

If all objects are equipped with propper annotations, you can do this:

`$array = (new ArrayObjectConverter($entity))->getArray();`

Or the other way around:

`$object = (new ArrayObjectConverter($entity))->setArray($array);`

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance48

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~1026 days

Total

7

Last Release

417d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f83d7e57a4bf3f1309680dbfbbf2d022f0ee6dae64a4b3bdfbed1226f2f6bef?d=identicon)[rkr](/maintainers/rkr)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rkr-array-object-converter/health.svg)

```
[![Health](https://phpackages.com/badges/rkr-array-object-converter/health.svg)](https://phpackages.com/packages/rkr-array-object-converter)
```

PHPackages © 2026

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