PHPackages                             maximo-perez-villalba/class-properties-reader - 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. maximo-perez-villalba/class-properties-reader

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

maximo-perez-villalba/class-properties-reader
=============================================

La clase lee vía reflexión todos las propiedades de una clase incluyendo las propiedades privadas de su jerarquía.

1.1.2(3y ago)05proprietaryPHPPHP &gt;=8.1

Since Nov 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/maximo-perez-villalba/class-properties-reader)[ Packagist](https://packagist.org/packages/maximo-perez-villalba/class-properties-reader)[ RSS](/packages/maximo-perez-villalba-class-properties-reader/feed)WikiDiscussions main Synced 1mo ago

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

class-properties-reader
=======================

[](#class-properties-reader)

La clase lee vía reflexión todos las propiedades de una clase incluyendo las propiedades privadas de su jerarquía. Implementa una extensión del método [ReflectionClass::getProperties](https://www.php.net/manual/es/reflectionclass.getproperties.php)de la clase [ReflectionClass](https://www.php.net/manual/en/class.reflectionclass.php).

Ejemplo de uso
--------------

[](#ejemplo-de-uso)

```
class YourCustomClassRoot
{
    private string $propertyString = 'aValueOfTypeString';
    private int $propertyInt = 0;
    private float $propertyFloat = 0.0;
}

class YourCustomClassNode extends YourCustomClassRoot
{
    private bool $propertyBool = false;
    private array $propertyArray = [];
}

class YourCustomClassLeaf extends YourCustomClassNode
{
    private object ?$propertyObjectOrNull = null;
}
```

### Como usar

[](#como-usar)

Invocar el método [ClassPropertiesReader::getAll](/MPV/Tools/Reflection/ClassPropertiesReader.php#L15)(string $classname), retorna un ReflectionProperty\[\].

```
$allProperties = ClassPropertiesReader::getAll(YourCustomClassLeaf::class);
print_r($allProperties);
```

**Salida**

```
Array
(
    [propertyObjectOrNull] => ReflectionProperty Object
        (
            [name] => propertyObjectOrNull
            [class] => YourCustomClassLeaf
        )

    [propertyArray] => ReflectionProperty Object
        (
            [name] => propertyArray
            [class] => YourCustomClassNode
        )

    [propertyBool] => ReflectionProperty Object
        (
            [name] => propertyBool
            [class] => YourCustomClassNode
        )

    [propertyFloat] => ReflectionProperty Object
        (
            [name] => propertyFloat
            [class] => YourCustomClassRoot
        )

    [propertyInt] => ReflectionProperty Object
        (
            [name] => propertyInt
            [class] => YourCustomClassRoot
        )

    [propertyString] => ReflectionProperty Object
        (
            [name] => propertyString
            [class] => YourCustomClassRoot
        )
)
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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

2

Last Release

1259d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d9a7da19851a12e5a8cb6997a2e0e2f6aa841800ad9de970dd8bcc163625b272?d=identicon)[maximo-perez-villalba](/maintainers/maximo-perez-villalba)

---

Top Contributors

[![maximo-perez-villalba](https://avatars.githubusercontent.com/u/102780243?v=4)](https://github.com/maximo-perez-villalba "maximo-perez-villalba (4 commits)")

---

Tags

php8propertiesreflectiontest

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/maximo-perez-villalba-class-properties-reader/health.svg)

```
[![Health](https://phpackages.com/badges/maximo-perez-villalba-class-properties-reader/health.svg)](https://phpackages.com/packages/maximo-perez-villalba-class-properties-reader)
```

PHPackages © 2026

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