Download the PHP package entelisteam/lbaf-reflection without Composer
On this page you can find all versions of the php package entelisteam/lbaf-reflection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download entelisteam/lbaf-reflection
More information about entelisteam/lbaf-reflection
Files in entelisteam/lbaf-reflection
Package lbaf-reflection
Short Description Lightweight PHP reflection utilities: enum helper, type caster, short class name resolver, cached method parameter lookup.
License MIT
Informations about the package lbaf-reflection
entelisteam/lbaf-reflection
Lightweight PHP reflection utilities. No runtime dependencies beyond the PHP standard library.
Install
Requires PHP 8.2 or newer.
What's inside
EntelisTeam\Lbaf\Reflection\TypeCaster
Converts a scalar value to a PHP type by name. Accepts both PHP type names (int, bool, float, string) and legacy gettype() names (integer, boolean, double).
EntelisTeam\Lbaf\Reflection\EnumHelper
Constructs an enum case from a value. Works for both backed enums (::from()) and unit enums (constant lookup).
For backed enums the value is coerced to the backing type via TypeCaster::cast() first, so '42' will match an int-backed case.
EntelisTeam\Lbaf\Reflection\ClassNameHelper
Returns the short class name (without namespace) with internal caching.
EntelisTeam\Lbaf\Reflection\MethodParameters
Cached lookup of method parameters by name.
Throws \InvalidArgumentException if the named parameter does not exist.
Версионирование
Все пакеты LBAF следуют SemVer:
- Major (
1.x→2.0) — слом обратной совместимости публичного API. Каждое такое изменение сопровождается Rector-миграцией (см. lbaf-rector). Обновляется только вручную: поднять constraint вcomposer.jsonи выполнитьcomposer update. - Minor (
1.2→1.3) — новая функциональность, обратная совместимость сохранена. - Patch (
1.2.0→1.2.1) — исправления без изменения публичного API.
Правило: если изменение требует Rector-миграции — это major, иначе minor или patch.
Зависимости на пакеты LBAF указываются через caret ("entelisteam/lbaf-*": "^1.2"): minor и patch подтягиваются обычным composer update, major автоматически не устанавливается. После обновления Rector-миграции применяются автоматически (хук post-update-cmd); если хук не настроен — выполните composer rector:fix.
License
MIT.