For PHP using composer initiated AutoLoad (PSR-4)
In deployment PHP is easily maintained using Composer. Composer handles distribution and updating.
This simple agnostic example can be extended using a Markdown Parser.
Easily extend the environment - and to publish the extension for use in this and any PSR-4 enviroment - See example at https://github.com/bravedave/pages
1.Setup a new project
composer create-project bravedave/mvp <my-project> @dev
2.Install dependencies & run
cd <my-project>
composer update
# to run locally ..
./run.sh
... the result is visible at http://localhost/
- Install Extension & run
composer require slim/slim slim/psr7 slim/php-view twbs/bootstrap twbs/bootstrap-icons
# if you are installing on CentOS running under apache or similar, it will need a data folder
mkdir src/data
chmod 777 src/data
# to run locally ..
./run.sh
- Remove Extension & run
composer rem slim/slim slim/psr7 slim/php-view twbs/bootstrap twbs/bootstrap-icons
- Install Extension & run
composer require erusev/parsedown
# to run locally ..
./run.sh
- remove Extension
composer remove erusev/parsedown
- There is a tutorial at https://github.com/bravedave/dvc/blob/master/src/bravedave/dvc/views/docs/risorsa.md
- Look at src/app/launcher.php ...