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

Composer Json Laravel Package

imanghafoori/composer-json

Read and query data from any composer.json with a simple API. Provide the absolute path, create an instance, and access common fields via convenient methods—useful for tooling, package inspection, and build scripts.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables rapid implementation of version-dependent features (e.g., feature flags, conditional logic for new/old versions) without custom parsing logic
  • Simplifies integration of project metadata into build pipelines, API responses, or CLI tools (e.g., embedding app version in UI footers or API headers)
  • Supports "build vs buy" decisions by providing a tested, lightweight alternative to in-house solutions for composer.json reading, avoiding maintenance overhead
  • Facilitates dependency analysis for security or license compliance checks via structured access to require/require-dev sections

When to Consider This Package

  • Adopt when your project requires read-only access to composer.json metadata in Laravel or PHP applications, especially for tasks like version checks, metadata injection, or dependency analysis
  • Ideal for scenarios where you need a clean, tested API to avoid manual file handling and JSON parsing
  • Avoid if you need to modify composer.json (use Composer's own APIs or tools like jq instead), or if your use case is highly niche (e.g., accessing non-standard fields not covered by the package's methods)
  • Also avoid if your project is trivial and direct file_get_contents + json_decode suffices—though the convenience and safety of this package typically outweighs minimal overhead

How to Pitch It (Stakeholders)

For executives: "This package eliminates the need to build and maintain custom code for reading composer.json data, saving engineering hours and reducing risk. It's a proven, MIT-licensed solution that ensures consistent access to project metadata

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