dev-php7
dev-php7
MIT
The Requires
dev-master
9999999-dev
MIT
The Requires
1.0.0.x-dev
1.0.0.9999999-dev
MIT
The Requires
mpcmf web application skeleton., (*1)
Use it to build new projects with based on mpcmf., (*2)
Ultra-fast web-server included! :), (*3)
install base application structure, (*4)
composer.phar create-project mpcmf/mpcmf-web-app:dev-master .
then install tested requirements, (*5)
composer.phar install
Console commands usage, (*6)
bin/mpcmf apps/defaultApp/console.php
Web server starts as single console command, (*7)
# Single process server bin/mpcmf apps/defaultApp/console.php webServer:run --bind 0.0.0.0 --ports 8082 # Multi processes/ports server for usage with balancer (e.g. haProxy, nginx) bin/mpcmf apps/defaultApp/console.php webServer:run --bind 127.0.0.1 --ports 8082,8083,8084,8085 # Multi processes/ports server with included balancer (8080 - master port) bin/mpcmf apps/defaultApp/console.php webServer:run --bind 127.0.0.1 --ports 8082,8083,8084,8085 -m 0.0.0.0:8080
Do not forget to clean up cache after some updates! By default in /tmp/mpcmf
, (*8)
Create new app in the apps
directory.
Default structure:, (*9)
apps # directory with all project applications โโโ defaultApp โโโ commands # directory for console commands โย ย โโโ test # your custom console sub-namespace โย ย โย ย โโโ something.php # custom command โย ย โโโ webServer # webServer console command sub-namespace โย ย โโโ run.php # webServer command โโโ console.php # console application with all application commands โโโ defaultApp.php # base application class โโโ libraries # directory for custom libraries โโโ modules # directory for application modules โย ย โโโ defaultModule # single module โย ย โโโ module.php # base module class โย ย โโโ routes.php # some non-entity routes such as homepage โย ย โโโ actions # module actions, routes, acl settings related to entities โย ย โโโ controllers # mvc controllers โย ย โโโ entities # just meta-objects โย ย โโโ mappers # data mappers for storage, forms and relations โย ย โโโ models # mvc models โย ย โโโ public # some static files (do not accessible via http) โย ย โโโ templates # mvc templates (module) โโโ templates # another templates (application)
How fast is included web server?
For example: info api /MODULE/ENTITY/api.getInfo
1.9ms, (*10)
, (*11)
Change environment options in environment.local.php
file., (*12)
Please create issues for some bugs., (*13)
MIT
MIT
MIT