- More complex MvcCore application how to build portable multilanguage application, with infinite controllers and views tree structure and with all source data for documents in XML files.
- Result is completly portable -
./release/index.php
+./release/.htaccess
- Result application currently packed in strict package mode, all packing configurations included in
./.packager/
- Packed with Packager library - mvccore/packager), all packing ways possible:
- PHAR file
- standard PHAR package with whole devel dir content
- PHP file
- strict package
- everything is contained in result
index.php
- only
.htaccess
orweb.config
are necessary to use mod_rewrite
- everything is contained in result
- preserve package
- result
index.php
file contains PHP files, PHTML templates but no CSS/JS/fonts or images - all wrapped file system functions are looking inside package first, then they try to read data from HDD
- result
- preserve hdd
- result
index.php
file contains PHP files, PHTML templates but no CSS/JS/fonts or images - all wrapped file system functions are looking on HDD first, then they try to read data from package inself
- result
- strict hdd
- result
index.php
file contains only PHP files, but PHTML templates, all CSS/JS/fonts and images are on HDD - no PHP file system function is wrapped
- result
- strict package
- PHAR file
# load example
composer create-project mvccore/app-xmldocs
# go to project development dir
cd app-xmldocs/development
# update dependencies for app development sources
composer update
- go to
app-xmldocs/development
- clear everything in
./Var/Tmp/
- change
$app->Run();
to$app->Run();
in./index.php
- visit all aplication routes where are different JS/CSS bundles
groups to generate
./Var/Tmp/
content for result app - run build process
# go to project root dir
cd app-xmldocs
# run build process into single PHP file
sh make.sh
# go to project root dir
cd app-xmldocs
# run build process into single PHP file
make.cmd
# visit script `make-php.php` in your project root directory:
http://localhost/app-xmldocs/make-php.php
# now run your result in:
http://localhost/app-xmldocs/release/