PHPackages                             cjrasmussen/objectify - 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. cjrasmussen/objectify

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

cjrasmussen/objectify
=====================

Simple functions for converting associative arrays to objects and vice-versa

1.0.0(2y ago)022MITPHPPHP &gt;=7.4.0

Since Jun 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/cjrasmussen/Objectify)[ Packagist](https://packagist.org/packages/cjrasmussen/objectify)[ Docs](https://cjr.dev)[ RSS](/packages/cjrasmussen-objectify/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Objectify
=========

[](#objectify)

Simple functions for converting associative arrays to objects and vice-versa.

There are better ways to do this for specific cases but this covers some extremely general cases easy enough.

Usage
-----

[](#usage)

```
use cjrasmussen\Objectify\Objectify;

$array = [
    'foo' => 'bar',
    'baz' => [
        'alpha' => 1,
        'beta' => 2,
    ],
];
$object = Objectify::toObject($array);
```

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

[](#installation)

Simply add a dependency on cjrasmussen/objectify to your composer.json file if you use [Composer](https://getcomposer.org/) to manage the dependencies of your project:

```
composer require cjrasmussen/objectify
```

Although it's recommended to use Composer, you can actually include the file(s) any way you want.

License
-------

[](#license)

Objectify is [MIT](http://opensource.org/licenses/MIT) licensed.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

Unknown

Total

1

Last Release

733d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0225f44837a665c8a143afa50a34a406a769c523dba31e4cdf73fd0530dede45?d=identicon)[cjrasmussen](/maintainers/cjrasmussen)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cjrasmussen-objectify/health.svg)

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

###  Alternatives

[backpack/basset

Dead-simple way to load CSS or JS assets only once per page, when using Laravel 10+.

206971.5k11](/packages/backpack-basset)[spryker/decimal-object

PHP decimal handling as value object

233.0M64](/packages/spryker-decimal-object)

PHPackages © 2026

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