PHPackages                             shasoft/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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. shasoft/reflection

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

shasoft/reflection
==================

Package for reflection php

v1.0.2(2y ago)0311MITPHP

Since Dec 29Pushed 1y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (5)Used By (1)

Расширенные функции для рефлексии в PHP
=======================================

[](#расширенные-функции-для-рефлексии-в-php)

Доступ к защищенным и приватным свойствам
-----------------------------------------

[](#доступ-к-защищенным-и-приватным-свойствам)

```
class MyObject{
    function __construct(private int $prop) {

    }
}
$obj = new MyObject(123);
// Создать прокси объект
$proxyObj = new FriendProxy($obj);
// Вывести приватное свойство
echo $proxyObj->prop;
```

*Вывод*123

Получить список элементов (сущностей) файла
-------------------------------------------

[](#получить-список-элементов-сущностей-файла)

```
class TestClass1
{
}
class TestClass2
{
    public static function print() : void {
        $items = Items::list(__FILE__);
        var_dump($items);
    }
}
TestClass2::print();
```

*Вывод*

```
[
    'TestClass1',
    'TestClass2',
]
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

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

870d ago

### Community

Maintainers

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

---

Tags

phpdebugreflectiondumpfriend

### Embed Badge

![Health badge](/badges/shasoft-reflection/health.svg)

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

###  Alternatives

[jbzoo/jbdump

Script for debug and dump PHP variables and other stuff. This tool is a nice replacement for print\_r() and var\_dump() functions.

211.1M3](/packages/jbzoo-jbdump)[php-sage/sage

☯ Insightful PHP debugging assistant.

5639.7k5](/packages/php-sage-sage)[h4cc/phpqatools

A meta composer package for PHP QA Tools.

6418.6k1](/packages/h4cc-phpqatools)

PHPackages © 2026

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