PHP code example of codedor / laravel-locale-collection

1. Go to this page and download the library: Download codedor/laravel-locale-collection library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

codedor / laravel-locale-collection example snippets


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'));