bravedave / mvp
Minimum Viable Product
v24.06.01
2024-06-27 01:50 UTC
README
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.
What can I do with this ?
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/
Extend with Slim
- 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
Extend with erusev/parsedown
- Install Extension & run
composer require erusev/parsedown
# to run locally ..
./run.sh
- remove Extension
composer remove erusev/parsedown
more
- 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 ...