Libraries tagged by php attribute
bephp/microtpl
810 Downloads
small template attribute language implemention for PHP (using xml_parse)
lloydzhou/microtpl
82 Downloads
small template attribute language implemention for PHP (using xml_parse)
s-mcdonald/phpfskit
7 Downloads
A lightweight PHP filesystem abstraction layer providing a clean, unified API for working with files, directories and their attributes.
modufolio/appkit
89 Downloads
A lean PHP framework built on Symfony components and Doctrine ORM, with hand-wired DI, attribute routing, and first-class Inertia.js support
genai/validation
115 Downloads
Attribute-based validation compiled to a reflection-free validator. Put #[NotBlank]/#[Email]/#[Length]/#[Pattern]/#[Matches] on a #[Validate] form class; a build-time processor bakes the rules into Cache\Validation. At runtime, validate a populated form object -> a field=>error map, no reflection. PHP 5.3-safe runtime.
genai/messaging
77 Downloads
Provider-agnostic messaging front (the third twin of genai/web and genai/console): the Producer/Consumer/MessageEvent contracts, a #[MessageHandler] attribute, a build-time MessageHandlerProcessor that compiles consumers.php, and a PHP 5.3-safe Worker runner that dispatches to handler beans. Ships NO broker — each app registers its own Consumer/Producer (Kafka, Pdo, SQS, ...). Shares the same compiled container as the web and CLI fronts.
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.
clutch-property-mgmt/content-domain
167 Downloads
Shared CMS domain models for PHP SSR apps. Provides pure, framework-agnostic entities (Page, PageSection, Review, SeoMeta, Navigation, etc.) with attribute-based validation via [phpolar/model]. Designed for Clean Architecture: no infrastructure, no PDO—just content-focused domain objects.
birb/fancy-stubs-codegen
9 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 (e.g. phpcbf) and framework-specific conventions (e.g. Laravel table/id naming) ship as separate packages — see birb/fancy-stubs-codegen-postprocessors and birb/fancy-stubs-codegen-laravel.
zrnik/php-attribute-reflection
2189 Downloads
Helper methods wrapping around reflection to get attribute instances easily.
yoldi/php-swagger
8 Downloads
OpenAPI 3.0 documentation generator from PHP attributes
x3p0-dev/x3p0-attributes
0 Downloads
A small, cached PHP attribute reader.
wedgesama/form-attribute-bundle
2 Downloads
Use PHP attributes as form configuration in Symfony
thesameson/php-data-contracts
1 Downloads
Extensible PHP library for defining and serializing Data Contracts. Supports PHP Attributes, custom resolvers, and runtime enrichment. Ships with Open Data Contract Standard (ODCS) support, extensible for custom standards.
plutuss/route-attribute-laravel
14 Downloads
Laravel register routes using PHP attributes