PHP code example of radic / bukkit-console

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

    

radic / bukkit-console example snippets


'providers' => array(
    'Radic\BukkitSwiftApi\BukkitSwiftApiServiceProvider',
    'Radic\BukkitConsole\BukkitConsoleServiceProvider',
)

// config.php
array(
    'view' => array('bukkit-console', 'Radic\BukkitConsole\Controllers\ConsoleController@index'),
    'cmd' => array('bukkit-console', 'Radic\BukkitConsole\Controllers\ConsoleController@cmd')
)
// BukkitConsoleServiceProvider.php
$routes = Config::get('radic/bukkit-console::routes');
Route::get($routes['view'][0], $routes['view'][1]);
Route::post($routes['cmd'][0], $routes['cmd'][1]);
Batchfile
php artisan config:publish radic/bukkit-console
php artisan asset:publish radic/bukkit-console
php artisan view:publish radic/bukkit-console