PHP code example of eschmar / laravel-table-dictionary

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

    

eschmar / laravel-table-dictionary example snippets


// Sample usage
$dict = new TableDictionary("table_name");
$dict->generate("attribute_name");

// Persist dictionary
TableDictionaryService::writeDictionary($dict);

// Retrieve dictionary
TableDictionaryService::writeDictionary($dict);
$dict = TableDictionaryService::getDictionary("table_name");