bfg/attributes
bfg/attributes brings PHP 8 attributes to Laravel, giving you a clean, declarative way to configure models, controllers, and services. Reduce boilerplate and keep metadata close to your code with simple, reusable attributes.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| tbn/getter-trait-bundle | 0.85 | tbn/getter-trait-bundle provides reusable PHP traits for adding getter methods to your classes. It reduces boilerplate, keeps property access consistent, and works smoothly in Laravel or standalone PHP projects. | 2 | 2 | 1 | 203 | 0 | 0.0 | 25.4 | MIT | 1 year ago | |
| jetbrains/phpstorm-attributes | 0.85 | JetBrains PhpStorm attributes provide PHP 8 attributes for richer code completion and analysis in PhpStorm, including Deprecated, ArrayShape, ObjectShape, and Immutable. Bundled with PhpStorm; add as a dev dependency for other static analysis tools. | 415 | 414 | 11 | 490K | 7 | 21.2 | 50.2 | Apache-2.0 | 2 months ago | |
| php-static-analysis/attributes | 0.85 | PHP attributes that let you annotate classes, methods, and properties with metadata for static analysis tools, improving type inference, purity checks, and IDE support. Lightweight, framework-agnostic, and easy to drop into existing codebases. | 94 | — | 0 | — | 0 | 0.5 | — | MIT | 1 year ago |
|
| crell/attributeutils | 0.85 | Utilities for PHP 8+ attributes: a cached AttributeReader that fetches and instantiates attributes on classes, methods, properties, and parameters, with helpers for repeatable attributes, inheritance, and object mapping. A lightweight base for attribute-driven config and dependency injection. | 102 | — | 7 | — | 1 | 0.8 | — | NOASSERTION | — |
|
| padam87/attribute-bundle | 0.85 | A Symfony bundle for adding flexible, configurable attributes to Doctrine entities without schema changes. Define attribute types, attach dynamic values to records, and query them through a simple, reusable API. | 24 | 24 | 12 | 4 | 6 | 2.2 | 2.8 | MIT | 11 years ago | |
| windwalker/attributes | 0.85 | — | 1 | 1 | 0 | 364 | 0 | 0.0 | 31.3 | MIT | — | |
| jwderoos/configurable | 0.84 | A Laravel package that adds configurable options to Eloquent models. Define options and values, then build variants with their own attributes and relations—ideal for configurable products, plans, or any model needing selectable configurations. Ships with traits, migrations, and relationships. | 0 | 0 | 0 | 0 | 1 | 9.6 | — | — | 6 months ago | |
| spatie/php-attribute-reader | 0.84 | Lightweight PHP 8+ utility to read native attributes from classes, methods, properties, and parameters using reflection. Designed for simple, fast attribute discovery in frameworks and libraries, with an API that fits common annotation-style workflows. | 89 | 89 | 2 | 994K | 0 | 7.5 | 58.2 | MIT | 8 months ago | |
| php-static-analysis/psalm-plugin | 0.84 | A Psalm plugin for PHP static analysis that extends Psalm with additional checks and integrations, helping teams catch issues earlier and enforce consistent code quality in their projects. | 2 | 2 | 1 | 2K | 0 | 0.3 | 37.4 | MIT | 1 year ago | |
| milwad/laravel-attributes | 0.84 | Laravel Attributes lets you configure Eloquent models using native PHP 8 attributes, replacing boilerplate properties and methods for fillable, hidden, casts, accessors, and more. Keep model classes clean, declarative, and easier to scan. | 232 | 230 | 10 | 384 | 0 | 10.4 | 6.3 | MIT | 6 months ago | |
| bfg/text | 0.84 | bfg/text is a lightweight Laravel/PHP text utility package offering convenient helpers for cleaning, formatting, and manipulating strings. It provides a simple API for common text operations, making it easy to handle content consistently across your application. | 1 | 1 | 1 | 39 | 0 | 0.0 | 18.1 | MIT | — | |
| spiral/attributes | 0.84 | Spiral Attributes is a lightweight PHP 8 attributes toolkit for reading, filtering, and working with attributes via reflection. Used by the Spiral framework, it provides a small, focused API for attribute discovery and metadata handling. | 24 | 24 | 4 | 370K | 1 | 3.7 | 55.2 | MIT | 1 year ago | |
| cartalyst/attributes | 0.84 | Cartalyst Attributes is a Laravel package for adding flexible custom attributes to Eloquent models. It provides an EAV-style attribute system with polymorphic storage, making it easy to extend models without schema changes. | 1 | 1 | 1 | 0 | 2 | 0.7 | — | NOASSERTION | 5 years ago | |
| n7olkachev/laravel-computed-properties | 0.84 | Add computed properties to your Laravel Eloquent models, calculated on the fly like accessors but excluded from the database. Keep models lean, reuse derived values across queries and serialization, and write less boilerplate. | 187 | — | 8 | — | 0 | 1.2 | — | — | 8 years ago | |
| bfg/repository | 0.84 | bfg/repository is a Laravel package that adds a clean repository layer between your application and Eloquent models, keeping queries organized and controllers lean. It supports reusable query logic and a testable data access structure. | 1 | 1 | 1 | 27 | 0 | 0.0 | 16.0 | — | — | |
| roundly-consulting/attributes-for-laravel | 0.84 | Bring PHP 8 attributes to Laravel: declaratively register services, routes, events, and more with clean, self-documenting classes. Attributes for Laravel cuts boilerplate config and keeps behavior right next to the code it affects. | 5 | — | 0 | — | 0 | 19.3 | — | MIT | 2 weeks ago | |
| mark-gerarts/phpstan-automapper-plus | 0.84 | PHPStan extension for AutoMapper+ that suppresses false “map() invoked with 3 parameters” errors while MapperInterface lacks the optional $context parameter (added post-1.0, formal in 2.0). Install via extension-installer or include phpstan.neon. | 0 | 0 | 1 | 10K | 1 | 0.5 | 55.1 | — | 7 years ago | |
| priblo/laravel-has-attributes | 0.84 | priblo/laravel-has-attributes provides a reusable HasAttributes trait for Laravel Eloquent models, simplifying custom attribute definitions and reducing boilerplate. Drop it into your models to keep attribute logic organized, consistent, and easy to reuse. | 2 | — | 0 | — | 0 | 0.3 | — | MIT | 7 years ago | |
| thinktomorrow/dynamic-attributes | 0.84 | thinktomorrow/dynamic-attributes lets Laravel Eloquent models carry flexible custom attributes without schema changes. Store extra key-value data through a familiar relation, with casting and querying support, so models can be extended dynamically per record. | 10 | — | 1 | — | 0 | 0.1 | — | MIT | 6 years ago | |
| mits87/eloquent-nested-attributes | 0.83 | Adds Rails-style nested attributes to Laravel's Eloquent ORM, letting you assign related models through a single attribute array and have them created, updated, or removed on save—cutting boilerplate for forms that manage parent and child records together. | 12 | — | 13 | — | 0 | 0.5 | — | MIT | 6 years ago |
How can I help you explore Laravel packages today?