Put your PHP8+ project on a diet by reducing total number of boilerplate code.
-
Updated
Jan 8, 2026 - PHP
Put your PHP8+ project on a diet by reducing total number of boilerplate code.
Python style decorator for PHP
Extensible data mapper to objects, DTOs, enums, collections, Eloquent models, etc
In this tutorial, I will demonstrate how to utilize WordPress hooks with PHP attributes. Although it may not be necessary for every simple plugin, employing PHP attributes can be particularly useful in plugins with a large codebase.
Advanced Meilisearch integration with Laravel Scout
🛣️ configure routes using PHP8 attributes, support for reverse routing, before and after middlewares and more
A reusable Laravel 10+ package that lets you annotate any service method with a PHP attribute to collect custom telemetry (e.g. user counts, disk usage, feature flags) and automatically report it—at configurable intervals—to a central server over HTTP.
Handling PHP Attributes by spiral/attributes
Automatic Doctrine ORM timestamps using PHP attributes and Symfony Clock. Drop #[CreateTimestamp] / #[UpdateTimestamp] on any entity property — no interfaces needed.
A Laravel package enabling the use of native PHP attributes for defining and managing Eloquent model attribute casts.
Leveraging Attributes With Respect\Validation and Laravel
Provides mechanisms for attribute objects to know about the symbol they are attached to.
Plugin all-in-one to enable awesome WordPress features
Learn Attribute on PHP 8 by creating simple http handling (mvc, api).
[READ-ONLY] Register WordPress hooks, filters and shortcodes with PHP Attributes into Lumberjack
A powerful static utility class for PHP reflection operations with built-in caching and advanced metadata (attributes) handling. Provides convenient methods for working with PHP 8+ attributes and reflection objects.
Integrate enum based statuses to Laravel models
Symfony bundle for extending Doctrine ORM entities with custom attribute-driven metadata — cacheable mapping, embedded entity support, and autoconfigured drivers
🗂️ map pure PHP objects to a database; configure entities with PHP8 attributes, intuitive relationship mapping
Add a description, image, and links to the php-attributes topic page so that developers can more easily learn about it.
To associate your repository with the php-attributes topic, visit your repo's landing page and select "manage topics."