PHPackages                             hpkns/objkit - 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. hpkns/objkit

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

hpkns/objkit
============

Create data objects from unstructured data

v1.0.1(8mo ago)0804↓50%1MITPHPPHP &gt;=8.1

Since Sep 9Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/hpkns/objkit)[ Packagist](https://packagist.org/packages/hpkns/objkit)[ RSS](/packages/hpkns-objkit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

OBJKIT
======

[](#objkit)

Create data objects from unstructured data

Installation
============

[](#installation)

Simply get it from composer:

```
composer require hpkns/gadget
```

Usage
=====

[](#usage)

```
use Hpkns\Objkit\Attributes\ArrayOf;
use Hpkns\Objkit\Buildable;
use Hpkns\Objkit\ObjectBuilder;

class Person {
    use Buildable;

    public function __construct(
        readonly string $name,
        readonly int    $age,
        #[ArrayOf(Person)]
        readonly array  $parents = [],
    ) {
        //
    }
}

$jedi = Person::build([
    'name' => 'Luke',
    'age' => '19',
    'parents' => [
        [
            'name' => 'Anakin',
            'age' => 41,
        ]
    ]
]);
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance67

Regular maintenance activity

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Every ~61 days

Recently: every ~91 days

Total

7

Last Release

250d ago

Major Versions

0.1.4 → 1.0.02024-09-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/662a885cae08d800adfcc2454619278d1aded418ee966dc8bed870f7ed1a3a75?d=identicon)[hpkns](/maintainers/hpkns)

---

Top Contributors

[![hpkns](https://avatars.githubusercontent.com/u/6053629?v=4)](https://github.com/hpkns "hpkns (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hpkns-objkit/health.svg)

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

###  Alternatives

[pentiminax/ux-sweet-alert

SweetAlert2 integration for Symfony

254.4k](/packages/pentiminax-ux-sweet-alert)

PHPackages © 2026

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