PHP code example of kohkimakimoto / luster

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

    

kohkimakimoto / luster example snippets


#!/usr/bin/env php

r\Foundation\Application;

$app = new Application("yourappname", "0.1.0");
$app->setBasePath(realpath(__DIR__."/.."));
$app->register([
    // 'Illuminate\Database\DatabaseServiceProvider',
    // 'Illuminate\Database\MigrationServiceProvider',
    // 'Illuminate\Database\SeedServiceProvider',
    // 'Kohkimakimoto\Luster\Process\ProcessServiceProvider',
]);
$app->setAliases([
    // 'Process' => 'Kohkimakimoto\Luster\Process\Facades\Process',
]);

$app->command([
    // 'Kohkimakimoto\Luster\Commands\HelloCommand',
]);

$app->run();

$app->command([
    'Kohkimakimoto\Luster\Commands\HelloCommand',
]);

php bin/yourappname