Laravel 10 – 12
PHP 8.2+
The project is in a healthy, maintained state
Locale Collection package for Laravel
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

^10.4 || ^11.0 || ^12.0
^10.4 || ^11.0 || ^12.0
^8.0 || ^9.0 || ^10.0
phpstan/extension-installer
^1.1
phpstan/phpstan-deprecation-rules
^2.0
phpstan/phpstan-phpunit
^2.0

Runtime

 Project Readme

Locale Collection for Laravel

A package to define locales via a facade for your project.

Installation

You can install the package via composer:

composer require wotz/laravel-locale-collection

Usage

use Wotz\LocaleCollection\Facades\LocaleCollection;
use Wotz\LocaleCollection\Locale;

LocaleCollection::add(new Locale('nl-BE', 'whoownsthezebra.be', 'nl'))
    ->add(new Locale('fr-BE', 'whoownsthezebra.be', 'fr'))
    ->add(new Locale('en-GB', 'whoownsthezebra.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@whoownsthezebra.be instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.