Simple Blog

This project creates a really simple blog, to demonstrate SOLID principles and API Rest (validation, error management), also PhpUnit test and mocking.

Environment

  • PHP 7.4
  • Symfony 5.

Installation

curl -sS https://get.symfony.com/cli/installer | bash

composer install

symfony serve

Unit tests

php ./vendor/bin/phpunit

Code syntax checkings

composer stan

composer cs

Run homepage

http://127.0.0.1:PORT/

OpenApi/Swagger

http://127.0.0.1:PORT/api/doc