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

league/config

Define and validate nested PHP configuration with strict schemas (via Nette Schema). Merge multiple config sources, apply defaults, enforce types/constraints, and read values using convenient dot notation. Ideal for robust, structured app and library config.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enforces strict schema validation to prevent runtime configuration errors, reducing production incidents by catching misconfigurations during development
  • Standardizes configuration management across teams with code-defined schemas, eliminating environment-specific inconsistencies and manual documentation gaps
  • Supports modular architecture by enabling schema composition (e.g., combining database, logging, and service-specific schemas), critical for microservices or complex monoliths
  • In build vs buy decisions, provides a purpose-built solution for schema-based validation with minimal dependencies—avoiding reinvention of core validation logic or adopting heavier frameworks like Symfony Config

When to Consider This Package

  • ✅ When your application requires strict type enforcement, required field validation, and immutability of schemas defined purely in PHP code
  • ✅ When you need dot-notation access to nested configuration values with validation applied on read (lazy processing)
  • ✅ When your team prefers explicit PHP-based configuration definitions over external file formats (YAML/JSON)
  • ❌ When you need to load configurations from external files (YAML, JSON), command-line arguments, or environment variables directly
  • ❌ When dynamic schema changes based on runtime values are required (e.g., schema depends on another config value)
  • ❌ For simple applications where basic env variables suffice—overkill for trivial setups

How to Pitch It (Stakeholders)

  • Executives: "This package prevents $50K+ in annual incident costs by catching configuration errors before they reach production. It standardizes how teams manage settings, reducing deployment failures and speeding up onboarding—while adding zero operational overhead."
  • Engineering: "A dependency-light, battle-tested library (using Nette Schema + dot-access-data) that enforces strict config schemas via pure PHP. Integrates in minutes, supports modular schema composition for microservices, and avoids the complexity of full-stack frameworks—perfect for teams needing validation without external tooling."
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.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui