wotz/laravel-locale-collection

Locale Collection package for Laravel

Maintainers

Package info

github.com/wotzebra/laravel-locale-collection

pkg:composer/wotz/laravel-locale-collection

Statistics

Installs: 1 546

Dependents: 15

Suggesters: 0

Stars: 0

Open Issues: 3

v2.0.0 2026-01-20 10:45 UTC

README

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.