Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 26 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,52 @@
# Blog-PHP-OOP

Ce projet est un blog realisé avec un framework PHP from scratch, lors de ma formation dans le but d'apprendre les bases du langage PHP, de l'Orienté Objet paradigme et du patron de conception MVC.
Ce projet est un blog realisé avec un framework PHP from scratch, lors de ma
formation dans le but d'apprendre les bases du langage PHP, de l'Orienté Objet
paradigme et du patron de conception MVC.

## Prerequisite :
PHP 8, MySQL, Apache.

PHP 8, MySQL, Apache.

## Languages and libraries
This project is made with:
- PHP 8
- HTML5
- CSS3 + Bootstrap
- JS

This project is made with:

- PHP 8
- HTML5
- CSS3 + Bootstrap
- JS

Dependencies manager: Composer

PHP packages, included via Composer:
- Twig: 3.0,
- Symfony/Dotenv: 5.3,
- Bootstrap: 5,
- Phpmailer: 6.5

- Twig: 3.0,
- Symfony/Dotenv: 5.3,
- Bootstrap: 5,
- Phpmailer: 6.5

## Installation

1. Download project zip or clone it from git.
2. Unzip
3. Open terminal and get into the project folder
``` cd blog-php-poo```
4. Install dependencies with composer
```composer install ```
3. Open terminal and get into the project folder
` cd blog-php-poo`
4. Install dependencies with composer
`composer install `

## Database

1. Create a new MYSQL database
2. import blog_php_db.sql

### Environment Variables

1. Copy .env.dist and rename it in .env.
2. Customize variables as needed.

### Mail Sending

Configuration is in /src/Mails/Mail.php

1. TCP port to connect to and host are set on .env.
1. TCP port to connect to and host are set on .env.
2 changes: 1 addition & 1 deletion src/Mails/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ public function setHost(string $host): void
}


}
}