PHP code example of ricardokovalski / locale

1. Go to this page and download the library: Download ricardokovalski/locale 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/ */

    

ricardokovalski / locale example snippets


use RicardoKovalski\Locale\Locale;

Locale::fromString('en_US');

use RicardoKovalski\Locale\Locale;

Locale::fromString('en/US')->format('%L_%c');

//EN_us