codedor / laravel-locale-collection
Locale Collection package for Laravel
Installs: 4 625
Dependents: 8
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.2|^8.3
- illuminate/contracts: ^10.4|^11.0
- spatie/laravel-package-tools: ^1.12
Requires (Dev)
- illuminate/cookie: ^10.4|^11.0
- illuminate/support: ^10.4|^11.0
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.0|^8.0
- nunomaduro/larastan: ^2.0
- orchestra/testbench: ^8.0|^9.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
This package is auto-updated.
Last update: 2025-02-03 12:45:31 UTC
README
A package to define locales via a facade for your project.
Installation
You can install the package via composer:
composer require codedor/laravel-locale-collection
Usage
use Codedor\LocaleCollection\Facades\LocaleCollection; use Codedor\LocaleCollection\Locale; LocaleCollection::add(new Locale('nl-BE', 'codedor.be', 'nl')) ->add(new Locale('fr-BE', 'codedor.be', 'fr')) ->add(new Locale('en-GB', 'codedor.com', 'en'));
Documentation
For the full documentation, check here.
Testing
vendor/bin/pest
Changelog
Please see CHANGELOG for more information on what has changed recently.
Upgrading
Please see UPGRADING for more information on how to upgrade to a new version.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
If you discover any security-related issues, please email info@codedor.be instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.