spatie/php-attribute-reader
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spiral/attributes | 0.86 | 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 | |
| mpociot/reflection-docblock | 0.85 | Parse and work with PHP DocBlocks via reflection. mpociot/reflection-docblock extracts summaries, descriptions, tags, params, and return types from classes, methods, and properties, making it easy to generate documentation or build tooling that relies on DocBlock metadata. | 85 | 85 | 4 | 1M | 2 | 1.5 | 55.1 | MIT | 10 years ago | |
| spatie/pixelmatch-php | 0.85 | PHP wrapper around pixelmatch for fast, simple image comparison. Generate diff images and measure mismatch percentages to spot visual regressions in tests or validate uploads. Works with common image formats via GD/Imagick depending on setup. | 58 | 58 | 6 | 11K | 0 | 3.3 | 31.8 | MIT | 11 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 |
|
| ibrows/annotation-reader | 0.85 | ibrows/annotation-reader parses PHP docblock annotations into structured objects, letting you read class, method and property metadata at runtime via reflection. A lightweight API for annotation scanning, useful for custom routing, ORMs, validation or framework features in Laravel and plain PHP proj... | 0 | 1 | 1 | 16 | 0 | 0.0 | 17.0 | — | — | |
| spatie/valuestore | 0.85 | Easily store and retrieve simple key-value data in a JSON file. Valuestore offers a lightweight, framework-friendly API for persisting settings, counters, and small bits of state without needing a database, with atomic writes and optional caching. | 763 | 769 | 47 | 70K | 0 | 9.1 | 27.2 | MIT | 1 year ago | |
| lee-to/fast-attributes | 0.85 | lee-to/fast-attributes is a lightweight Laravel package for fast, expressive model attribute handling. It reduces boilerplate around accessors and casts, keeping Eloquent models clean, readable, and efficient—ideal for apps that want simpler model definitions without sacrificing performance. | 2 | 2 | 0 | 15K | 0 | 0.0 | 51.3 | MIT | 1 year ago | |
| eliashaeussler/phpunit-attributes | 0.84 | PHPUnit Attributes adds modern PHP 8 attributes to define PHPUnit tests, data providers, groups, dependencies and more in a clean, declarative way. Keep test classes readable and reduce annotation/docblock noise while staying compatible with PHPUnit workflows. | 4 | 4 | 1 | 4K | 1 | 11.5 | 43.3 | GPL-3.0 | 7 months ago | |
| windwalker/attributes | 0.84 | — | 1 | 1 | 0 | 364 | 0 | 0.0 | 31.3 | MIT | — | |
| phpdocumentor/reflection-docblock | 0.84 | A DocBlock parser fully compatible with the PHPDoc standard. Use its DocBlockFactory to read summaries, descriptions, tags, and annotations from doc comments or reflection classes, so your library can extract embedded documentation and metadata. | 0 | 9,379 | — | 19M | — | 9.9 | 55.3 | — | — | |
| bfg/attributes | 0.84 | 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. | 0 | 0 | 1 | 7 | 0 | 0.0 | 12.5 | MIT | — | |
| phpdocumentor/reflection-common | 0.84 | ReflectionCommon provides the shared interfaces and base classes behind phpDocumentor's reflection layer, defining common contracts for elements, types, and locations used across the ecosystem. A lightweight, dependency-free foundation for building reflection-based tooling in PHP. | 9,031 | 9,044 | 22 | 12M | 0 | 47.6 | 50.4 | MIT | 1 month ago | |
| spatie/php-cloneable | 0.84 | Trait for PHP 8.1+ that makes objects with readonly properties cloneable. Safely “clone with changes” by copying an object while overriding readonly fields—handy until PHP gets native clone-with support. | 97 | 98 | 7 | 207K | 0 | 1.6 | 45.9 | MIT | 2 years ago | |
| php-di/phpdoc-reader | 0.84 | PhpDocReader parses @var and @param docblock types to resolve class names, supporting fully qualified, imported, relative, and aliased names with the same rules as PHP. Primitive types are ignored; only valid class names are returned. Used by PHP-DI. | 73 | 77 | 15 | 629K | 0 | 4.1 | 54.3 | MIT | 6 years ago | |
| spatie/mjml-php | 0.84 | spatie/mjml-php converts MJML email markup into responsive, email-client-ready HTML from PHP. Install with Composer plus the mjml npm package (Node 16+), then use the simple Mjml::new()->toHtml($mjml) API to render MJML without hand-writing HTML. | 282 | 281 | 15 | 239K | 0 | 21.5 | 45.5 | MIT | 3 months ago | |
| spatie/shiki-php | 0.84 | Bring Shiki's beautiful syntax highlighting to PHP. A simple static call highlights code using the same language engine as popular code editors, with 100+ languages and themes plus bundled Antlers and Blade support. | 315 | 317 | 34 | 6M | 0 | 19.6 | 59.9 | MIT | 6 months ago | |
| spatie/ray | 0.84 | spatie/ray sends debug output from any PHP app to Ray, Spatie's desktop debugging app. Dump arrays, HTML, queries, and Markdown, measure performance, pause execution, and inspect output with the same syntax you use across Laravel, JavaScript, and more. | 624 | 627 | 102 | 2M | 0 | 35.7 | 55.7 | MIT | 2 days ago | |
| piedweb/render-html-attributes | 0.84 | piedweb/render-html-attributes is a small PHP helper for converting arrays of attributes into safe, correctly escaped HTML attribute strings. It simplifies building reusable Blade components and tags, handling booleans, class arrays, and conditional attributes with clean, readable syntax. | 5 | 5 | 0 | 7K | 0 | 0.0 | 42.6 | MIT | — | |
| spatie/laravel-markdown-response | 0.84 | Serve markdown versions of Laravel HTML pages to AI agents and bots. Detects text/markdown Accept headers, AI user agents, or .md URLs; converts via local PHP or Cloudflare Workers AI, caches results, and supports HTML preprocessing. | 84 | 83 | 9 | 60K | 0 | 22.2 | 46.0 | MIT | 2 weeks ago | |
| spatie/7to5 | 0.84 | Abandoned. Converts PHP 7.0 code to PHP 5, useful when developing on PHP 7 but deploying to PHP 5. Provides a CLI to convert entire directories and rewrites features like anonymous classes, type hints, return types, and null coalescing. | 177 | 175 | 32 | 46 | 0 | 2.6 | 1.0 | MIT | 8 years ago |
How can I help you explore Laravel packages today?