Weave 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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator