PHPackages                             natsumeaurlia/auto-property-reflection - 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. [API Development](/categories/api)
4. /
5. natsumeaurlia/auto-property-reflection

ActiveLibrary[API Development](/categories/api)

natsumeaurlia/auto-property-reflection
======================================

Automatically reflect properties.

1.2(4y ago)031MITPHPPHP ^7.4 || ^8.0

Since Jan 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/natsumeaurlia/auto-relection-property)[ Packagist](https://packagist.org/packages/natsumeaurlia/auto-property-reflection)[ RSS](/packages/natsumeaurlia-auto-property-reflection/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

auto reflection property
========================

[](#auto-reflection-property)

Provide a simple property initialization. API resources can be easily represented.

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

[](#installation)

```
composer require natsumeaurlia/auto-property-reflection

```

Usage
-----

[](#usage)

Extends from an abstract class. Define the required property names. This must be the same name as the key you accept.

```
class GithubUser extends PropertyReflector
{
    public $id;
}

$user = new GithubUser(['id' => 'xxxx']);
$user->id;

```

If the property is not defined, it will not be set.

```
class GithubUser extends PropertyReflector
{
    public $id;
}

$user = new GithubUser(['name' => 'xxxx']);
$user->name; // access undefined property

```

Example
-------

[](#example)

```
class GithubUser extends PropertyReflector
{
    public $name;
}

// cURL,Guzzle ...etc
$client = new GuzzleHttp\Client();
$res = $client->request('GET', 'https://api.github.com/users/octocat');
$user = new GithubUser($res->getBody()->getContents());
$user->name; // octocat

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

3

Last Release

1562d ago

PHP version history (2 changes)1.0PHP &gt;=7.1

1.1PHP ^7.4 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![natsumeaurlia](https://avatars.githubusercontent.com/u/40763821?v=4)](https://github.com/natsumeaurlia "natsumeaurlia (10 commits)")

---

Tags

apiutilityentityreflecction

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/natsumeaurlia-auto-property-reflection/health.svg)

```
[![Health](https://phpackages.com/badges/natsumeaurlia-auto-property-reflection/health.svg)](https://phpackages.com/packages/natsumeaurlia-auto-property-reflection)
```

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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