A simple web blog written in PHP, using Composer for dependency management.
This project was completed as part of a school assignment in 2023.
Note: This project will not continue its development.
- User-friendly blog interface
- Create, edit, and delete posts
- Display blog posts with author and date
- Responsive design with CSS
- MVC structure for easy maintenance
- Composer-powered package management
- PHP (87.1%)
- CSS (12.9%)
- Composer for PHP package management
- PHP >= 7.4
- Composer installed
- Web server (Apache, Nginx, etc.)
-
Clone the repository:
git clone https://github.com/mehdirexon/simple-web-blog.git cd simple-web-blog -
Install dependencies:
composer install
-
Configure your web server:
- Point your server's document root to the
public/directory if present. - Ensure
.htaccessis enabled for pretty URLs (if using Apache).
- Point your server's document root to the
-
Setup database (if required):
- Create a database for the blog.
- Update configuration files with your DB credentials (see below).
Update any configuration files such as .env or /config to match your environment.
Example .env variables:
DB_HOST=localhost
DB_NAME=your_db_name
DB_USER=your_db_user
DB_PASS=your_db_password
If you have PHP installed, you can run the built-in server for local development:
php -S localhost:8000 -t publicThen open http://localhost:8000 in your browser.
simple-web-blog/
├── public/ # Publicly accessible files (index.php, assets)
├── src/ # Application source code (controllers, models, views)
├── config/ # Configuration files
├── vendor/ # Composer dependencies
├── composer.json # Composer config
└── README.md # Project documentation
- Access the homepage to view all blog posts.
- Login or register to create your own posts (if authentication is implemented).
- Browse, create, edit, or delete posts.
This project is for educational purposes and does not offer any warranty.
You may reuse or modify it according to your needs.
Made by mehdirexon
This web blog was created as a school project in 2023. Development will not continue.