PHP code example of sinergi / dictionary

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

    

sinergi / dictionary example snippets


use Sinergi\Dictionary\Dictionary;

$language = 'en';
$directory = __DIR__ . "/examples";

$dictionary = new Dictionary(
    $language,
    $directory
);

$dictionary['example']['title'];

return [
    'title' => "This is an example"
];