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

laravel-lang/config

Laravel Lang: Config provides configuration resources for the Laravel Lang ecosystem, making it easier to integrate and manage language-related settings in Laravel apps. Maintained by the Laravel Lang community and distributed via Composer under MIT.

View on GitHub
Deep Wiki
Context7

Laravel Lang: Config provides a curated, versioned set of configuration resources used across the Laravel Lang ecosystem. Install it via Composer to keep your Laravel app’s language-related defaults in sync with upstream changes while staying lightweight and easy to update.

Designed for maintainability and consistency, this package helps you standardize localization configuration as part of a broader multilingual workflow.

  • Composer-ready package for quick integration
  • Centralized config aligned with Laravel Lang standards
  • Versioned releases for predictable upgrades
  • Lightweight footprint with minimal setup
  • MIT licensed and community-supported
Frequently asked questions about Config
How do I install Laravel Lang: Config in my Laravel project?
Run `composer require laravel-lang/config` in your project directory. The package integrates automatically via Laravel’s service provider system—no additional setup is required unless you need to publish or customize the default config files.
Which Laravel versions does this package support?
Laravel Lang: Config supports Laravel 11–13. If you’re using Laravel 10 or earlier, this package is not compatible, as it was designed for newer Laravel features like the updated configuration system.
Can I use this package with custom locale directories or non-PHP formats like JSON/YAML?
Yes, the package supports custom paths and fallbacks. While it defaults to PHP-based locales, you can extend it to load JSON/YAML files by configuring custom loaders in your `config/lang.php` or by overriding the `LaravelLangConfigServiceProvider` bindings.
How do I publish and customize the default config files?
Run `php artisan vendor:publish --tag=laravel-lang-config` to publish the config files to `config/lang.php`. Edit the published file to override defaults, or create environment-specific files like `lang-local.php` for per-environment overrides.
Does this package work with other Laravel-Lang packages like `laravel-lang/lang`?
Yes, it’s designed to complement the Laravel-Lang ecosystem. The config package provides standardized defaults that align with other Laravel-Lang tools, ensuring consistency across your multilingual workflow.
What if I need dynamic locales or database-driven translations?
This package is optimized for static, file-based locales. For dynamic or database-driven translations, you’ll need to build custom logic on top of Laravel’s existing localization system or consider alternatives like Spatie’s localization packages.
How do I access the configuration programmatically?
Use the `LaravelLangConfig` facade to interact with the config. For example, `LaravelLangConfig::meta()` retrieves metadata, and `LaravelLangConfig::initialize()` ensures the config is loaded. You can also access values directly via Laravel’s `config()` helper.
Is there a risk of breaking changes during updates?
The package follows semantic versioning, but since it’s part of the Laravel-Lang ecosystem, updates may align with Laravel’s release cycles. Always review the changelog and test updates in a staging environment to avoid compatibility issues.
What are the alternatives to Laravel Lang: Config for Laravel localization?
Alternatives include Spatie’s `laravel-translatable` for dynamic translations, Symfony’s `Intl` components for locale handling, or custom solutions using Laravel’s built-in localization features. This package is ideal if you’re already using Laravel-Lang tools.
How do I handle multi-region deployments or nested locale structures?
The package supports environment-specific overrides via `.env` or custom config files. For nested locales, extend the `LaravelLangConfigServiceProvider` to define custom loader logic or use Laravel’s `App::setLocale()` dynamically in your routes or middleware.
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