PHP code example of shangjinglong / dictionary

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

    

shangjinglong / dictionary example snippets


'providers' => [
    Shangjinglong\Dictionary\DictionaryServiceProvider::class
]

    namespace App\Http\Controllers;
    use Shangjinglong\Dictionary\Dictionary;

    class DictionaryController extends Controller
    {
        public  static function generate(){
            $dictionary = new Dictionary();
            $html = $dictionary->generate();
            return $html;
        }
    }