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.
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui