This is simple MVC based blog application based on Symfony components.
$ git clone [email protected]:RahatHameed/simple-blog.git
PHP 8.0 and mysql is needed to run this project.
Create a new database at your local msyql server, then Import Database using the provided file at Database/dump.sql
define("DB_HOST", "db_host");
define("DB_NAME", "database_name");
define("DB_USER", "db_user_name");
define("DB_PWD", "db_password");
$ composer install
$ php -S localhost:9000
Now open the project in the browser and hit below url.
http://localhost:9000
Your can login with below credentials and starting creating new blog posts.
Username: rahat
Password: 123456
. You can use env variables for database credentials.
. You can use create database migration/seeders using component like Phinx
. You can caching tool Redis or Memcached for cache.
. You can use any code formatting tool like PHP-CS-Fixer or phpstan.
. You can use PHPUnit for test coverage of the code.
. Finally you can also use dockerize this application.
Please follow the symfony documentation to enhance this application.
https://symfony.com/doc/current/create_framework/index.html
Cheers! Happy coding