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

Config Laravel Package

spiral/config

Spiral Config provides a flexible configuration system for Spiral apps. Load, merge, and access settings from multiple sources with a clean API, supporting layered environments and structured config classes for predictable, testable application configuration.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Centralizes configuration management to eliminate scattered env() calls, reducing technical debt and improving maintainability for modular applications.
  • Supports build-vs-buy decisions by offering a lightweight, purpose-built solution instead of reinventing config logic or adopting heavy frameworks.
  • Enables environment-specific overrides with predictable merging rules, critical for multi-environment deployments (e.g., dev/staging/prod) without manual code changes.
  • Promotes type-safe configuration access and immutable reads, preventing runtime errors from accidental mutations in critical settings.

When to Consider This Package

  • Ideal for non-Laravel PHP projects requiring structured, multi-source config (files, arrays, env) with dot-notation access and namespacing for components.
  • Suitable when strict immutability and caching-friendly design are prioritized over framework-specific integrations.
  • Avoid if:
    • The project uses Laravel (built-in config system is more robust and actively maintained).
    • The team requires recent updates, community support, or compatibility guarantees for modern PHP versions (last release was 2019).
    • The application is small/simple, where manual config handling or a simpler solution suffices.

How to Pitch It (Stakeholders)

Executives: "This package eliminates configuration chaos by centralizing settings across environments, reducing deployment errors and developer onboarding time. It ensures consistent, type-safe access to critical settings—like API keys or feature flags—without hardcoded values, directly improving product reliability and reducing costly runtime failures."

Engineering: "It’s a lightweight, MIT-licensed tool for modular PHP apps that handles config from multiple sources (files, env, arrays) with dot-notation and immutable reads. No more env() spaghetti—just clean, cacheable access. Verify PHP 8.x compatibility, but its simplicity avoids framework bloat for targeted use cases."

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