PHP Classes

File: artisan

Recommend this page to a friend!
  Classes of Leonardo Di Sarli   Ala PHP API Micro-Framework   artisan   Download  
File: artisan
Role: Example script
Content type: text/plain
Description: Example script
Class: Ala PHP API Micro-Framework
Generate base code for API using a query builder
Author: By
Last change:
Date: 6 months ago
Size: 670 bytes
 

Contents

Class file image Download
#!/usr/bin/env php
<?php

use Symfony\Component\Console\Input\ArgvInput;
use
Symfony\Component\Console\Output\ConsoleOutput;

/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
*/

$app = require __DIR__.'/bootstrap/app.php';

/*
|--------------------------------------------------------------------------
| Run The Artisan Application
|--------------------------------------------------------------------------
*/

$kernel = $app->make(
   
'Illuminate\Contracts\Console\Kernel'
);

exit(
$kernel->handle(new ArgvInput, new ConsoleOutput));