Libraries tagged by code reflection
hamidparchami/zend-code
4 Downloads
Extensions to the PHP Reflection API, static code scanning, and code generation
mfn/php-reflection-gen
61 Downloads
Generates PHP source code shells from the current runtime via Reflections
zetacomponents/reflection
1070 Downloads
The main objective of the Reflection component is to enhance PHP by type information and annotations. It uses source code documentation to determine data types and other pieces of information provided via annotations. Those annotations can be used to realize systems which depend on strong type information or additional details about the source code itself.
codexsoft/code-valid
96 Downloads
Base class for organizing value validation via reflection
sun/staticreflection
24 Downloads
Static PHP class code reflection for post-discovery scenarios.
nicmart/phpy
6 Downloads
With phpy you have an object-oriented interface to create valid php-code constructs
felideo/debug2
609 Downloads
Debug2 is a function developed to debug PHP code of form easy, simple, pretty print, fast and safe.
diversified-design/php-blueprint
18 Downloads
Generates a JSON blueprint of a PHP library's class signatures — optimised for coding-agent contexts.
dentelis/php7-attribute-reader
0 Downloads
Library for reading php8 attributes from legacy php7 code
csoellinger/dog-html-printer
279 Downloads
HTML printer for Dog, a simple code documentation generator.
apigen/parser
555 Downloads
Parses PHP code to structural elements.
beastbytes/cod-php
13 Downloads
PHP API document generator that uses PHP Reflection to analyse the code.
birb/fancy-stubs-codegen
13 Downloads
Build-time, attribute-driven code generator: write a stub class, mark members with #[DefinerAttribute], and get a real, finished PHP class back — conventions filled in (event names, ids, ...), or whole getters/setters/builder classes generated from the stub's properties. Unlike runtime-reflection tools, the output is a plain PHP file with zero dependency on this library and no per-request reflection cost; useful for scaffolding DDD value objects/aggregates/events, command classes and other boilerplate. Postprocessing (transforming code, e.g. phpcbf/php-cs-fixer/rector), quality checks (evaluating code, e.g. PHPStan/Psalm/PHPCS) and framework-specific conventions (e.g. Laravel table/id naming) ship as separate packages — see birb/fancy-stubs-codegen-postprocessors, birb/fancy-stubs-codegen-code-quality and birb/fancy-stubs-codegen-laravel.
tyhpdef/php
69 Downloads
Tyhp type definitions for always-present PHP built-ins (8.2+) — Core, date, filter, hash, json, libxml, pcre, random, Reflection, SPL, standard. Version-specific APIs are gated via declare(php=…) / #[\Tyhp\Php].
zfegg/psr-mvc
143 Downloads
Using MVC for PSR applications, like dotnet core MVC.