Libraries tagged by php reflection
mertcanekiz/phpydantic
44 Downloads
A reflection-driven BaseModel inspired by pydantic for JSON Schema generation in PHP
gplanchat/opaque
0 Downloads
Opaque value objects for PHP: secrets that refuse to leak through var_dump, print_r, var_export, serialize, string casts and reflection-based normalizers, with libsodium ciphering for the ones that must be stored
genai/sql-mapper
162 Downloads
MyBatis-style SQL mapper: mark an interface #[Mapper] and its methods #[Select]/#[Insert]/#[Update]/#[Delete] with the SQL. A build-time processor compiles a reflection-free Cache\ implementation (prepared statements, #{name} bound params, optional row->object hydration) and registers it as a container bean keyed by the interface. Self-contained: a bundled DatabaseConfig provides the 'PDO' bean from a [database] group in the app's app.ini, so you only edit config. Runtime is PHP 5.3-safe.
genai/openapi
79 Downloads
Generates an OpenAPI 3 document at build time from your #[RestController] routes, request-body Forms/DTOs and validation constraints — baked into a reflection-free Cache\OpenApi — and ships a controller that serves /openapi.json and a Swagger UI page at /docs. PHP 5.3-safe at runtime.
genai/i18n
79 Downloads
Localization for the GenAI stack — Spring-style message keys compiled from per-locale .ini catalogs into a reflection-free Cache\Messages, a Translator bean, a global __() view helper, and a LocaleInterceptor that resolves the request locale (?lang / session / Accept-Language). PHP 5.3-safe at runtime.
genai/dto
114 Downloads
DTO support: a #[Dto] attribute, a build-time processor that compiles each DTO's getters into a JSON map, and a PHP 5.3-safe Serializer that turns DTOs (and nested/arrays of them) into arrays via that map — no runtime reflection, no toArray(). Standalone: no runtime dependencies.
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.
qaharmdz/doctracer
11 Downloads
DocTracer helps you to create meaningful API documentation reports. Reflecting PHP class information and show markdown formatted documentation on one page.
reflektion/dummy-pkg
5 Downloads
Preventing Dependency Confusion in PHP with Composer
php-forge/helper
2257 Downloads
Small, focused helpers for common PHP tasks.
jshannon63/cobalt
901 Downloads
A fast, autowired PSR-11 dependency injection container for PHP with cached resolution closures.
michaelfrank-dev/php-trng
0 Downloads
Robust PHP library for retrieving true random numbers (TRNG) from quantum and hardware sources, featuring rejection sampling and resilient fallback chains.
lanfisis/deflection
30 Downloads
A library to generate php class for file or display
arousacode/webapp_liblet
14 Downloads
Small library to automatically load data from HTMl form in any PHP object, and to generate HTML inputs from it. Also load and store into PDO database.
infira/poesis
358 Downloads
PHP databse object releational mapper