heroest/lightning-project

framework template

dev-master 2020-08-13 14:47 UTC

This package is auto-updated.

Last update: 2024-05-13 23:08:39 UTC


README

an async-framework based on reactphp + libevent (optional)

  1. create-project
composer create-project heroest/lightning-project my_project dev-master
  1. run as web-server
cd my_project
php web 8080
open browser and go to http://localhost:8080/home/hello-world
  1. run as command
cd my_project
php cmd console/output heroest
  1. create-phar: run as web server (require phar.readonly=0 in php.ini)
php my_project/pmake my_project web
php web.phar 8080
  1. create-phar: run as command (require phar.readonly=0 in php.ini)
php my_project/pmake my_project cmd
php cmd.phar console/output