PHP code example of appkita / spark-serve
1. Go to this page and download the library: Download appkita/spark-serve 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/ */
appkita / spark-serve example snippets
$config = [
'host'=>'127.0.0.1',
'port'=>8080,
'path'=>'',
'indexFiles'=> ['index.php', 'index.html'],
'router' => []
];
$serve = new Appkita\SPARK\Serve($config); // default array empty || []
$serve->run();
sh
php spark