PHP Create Spark Serve for develop your PHP Aplication
- create file ex:
spark
<?php $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();
- open commandprom
php spark
composer require appkita/spark-serve