PHP code example of luuhai48 / flarum-tinker

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

    

luuhai48 / flarum-tinker example snippets


return [
    (new Extend\Console())->command(Luuhai48\FlarumTinker\TinkerCommand::class),
    (new Extend\Console())->command(Luuhai48\FlarumTinker\TinkerInstallCommand::class),
];
sh
php flarum tinker:install