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

Technical Evaluation

Architecture fit: The package excels in PHP applications requiring strictly typed, immutable configuration schemas defined in code. Ideal for services where config is known at compile-time and needs validation, but unsuitable for dynamic or file-based config loading (e.g., YAML/JSON). Best for monolithic apps or microservices with code-driven config.

Integration feasibility: High for PHP 7.4+ projects. Composer installation is trivial, but requires existing config to be pre-processed into PHP arrays (e.g., no native .env parsing). Must replace manual array access with get()/set() calls, requiring code refactoring.

Technical risk: Low adoption (0 direct dependents) raises concerns about real-world testing, though used by league/commonmark. Last release (Dec 2022) suggests stability but limited recent activity. Dependencies (Nette Schema, dflydev/dot-access-data) are well-maintained but add indirect complexity.

Key questions:

  • How to integrate with external config sources like .env files or cloud secrets managers?
  • Can schemas be shared across microservices without duplication?
  • What's the strategy for catching config validation errors during app startup?

Integration Approach

Stack fit: Opt

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
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
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation