Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Metadata Laravel Package

jms/metadata

jms/metadata is a PHP library for managing class, method, and property metadata independent of its source (annotations, YAML/XML/PHP config, etc.). Extend base metadata classes, plug in drivers, and fetch metadata via MetadataFactory.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. Buy: Eliminates need to build custom metadata management from scratch when developing serialization, validation, or ORM systems. Proven foundation used in Doctrine/Symfony ecosystems reduces reinvention risk.
  • Feature Roadmap: Enables rapid implementation of multi-source metadata (annotations, YAML, XML) for features like API serialization, validation rules, or entity mapping without framework lock-in.
  • Use Cases: Critical for libraries requiring flexible metadata handling (e.g., JMS Serializer alternatives), dynamic form builders, or enterprise systems needing cross-configuration consistency.
  • Technical Debt Reduction: Abstracts metadata source complexity; swapping YAML for annotations later requires no business logic changes.

When to Consider This Package

Adopt when:

  • Building a PHP library/framework needing pluggable metadata sources (annotations, config files)
  • Requiring caching for performance-critical metadata operations (e.g., high-traffic APIs)
  • Working with PHP 7.2+ or modern standards (PSR-11, PHP 8.x support confirmed in releases)
  • Needing read-only filesystem compatibility (e.g., containerized deployments)

Look elsewhere when:

  • Your project only uses simple annotations (e.g., Symfony PropertyInfo or native Reflection suffices)
  • Building a monolithic Laravel app where built-in tools (e.g., Eloquent metadata) meet needs
  • Dependents count is critical (this is a low-level library; direct app dependents are rare but widely used indirectly via Doctrine/Symfony)
  • Requires commercial support (MIT license but limited enterprise backing)

How to Pitch It (Stakeholders)

Executives: "This MIT-licensed library eliminates $150K+ in dev costs for metadata-heavy features like API serialization or validation. It’s battle-tested by Doctrine/Symfony, reduces technical risk with caching and PHP 8 support, and accelerates time-to-market for enterprise-grade features without licensing fees."

Engineering: "It provides a clean, decoupled abstraction for metadata sources—swap YAML, annotations, or XML without touching business logic. The caching layer (including read-only support) solves real-world performance bottlenecks, and recent updates (PHP 8.1+, PSR-11 container) ensure modern compatibility. Zero vendor lock-in with minimal dependencies."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport