Welcome to my PHP blog!
Download the ZIP from Github or clone the project :
git clone "https://github.com/meline-p/blog_php"
Install all components by running the following command:
composer install
Import the provided SQL file from the /database/blog_php.sql directory.
Change the environment variables DB_USERNAME, DB_PASSWORD and DB_UNIX_SOCKET according to your SQL configuration in the .env file.
MailDev installation : https://github.com/maildev/maildev
Install MailDev with npm :
npm install -g maildev
php -S localhost:8080 -t public
Access the site at http://localhost:8080/.
maildev
Access the MailDev interface at http://localhost:1080/.
To generate documentation, use phpDocumentor. You can download the latest PHAR file from https://phpdoc.org/phpDocumentor.phar and put it at the root of the project. Execute this command:
php phpDocumentor.phar run -d ./src -t docs/
Access the generated documentation in the docs/index.html directory. Launch Go Live on Visual Studio Code and access the online documentation in the docs directory.