PHP code example of nobox / lazy-strings-lumen

1. Go to this page and download the library: Download nobox/lazy-strings-lumen 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/ */

    

nobox / lazy-strings-lumen example snippets


$app->configure('lazy-strings');

$app->register(Nobox\LazyStrings\LazyStringsServiceProvider::class);

'csv-url' => 'http://docs.google.com/spreadsheets/d/1V_cHt5Fe4x9XwVepvlXB39sqKXD3xs_QbM-NppkrE4A/export?format=csv'

'target-folder' => 'lazy-strings'

'strings-route' => 'build-copy'

'nested' => true,

'sheets' => [
    'en' => [0, 1626663029],
    'es' => 1329731586,
    'pt' => 1443604037
]

trans('lazy.foo') // returns "Hello!"

Lang::get('lazy.foo'); // returns "Hello!"
bash
php artisan lazy:publish