Piment is a web application in vanilla PHP. We coded it as part of our two year studies to become IT technicians.
Technologies/concepts viewed in this application :
- Oriented Object Programming
- Model View Controller (MVC) architecture
- Data Access Object (DAO) architecture
- Database connection
- Application security (SQL injections, CSRF token, XSS injections)
- Right permissions (RBAC)
- Singleton programming pattern
- Unit Tests
- Logging
- Application rooting
- Environment variables
- Pagination
- Rendering
- Clean URLs
- Code quality (Sonarqube)
dependencies to install :
- php
- composer
- php-mysqlnd
git clone https://github.com/valentinRyckaert/Piment.git
cd Piment
composer installConnect to a mariadb database :
mariadb -P 3306 -u root -p < ./sql/dump-pompiers.sql
mariadb -P 3306 -u root -p < ./sql/migration_2024-11-06-0001.sqlCreate a "config.ini" file at the root of the project :
[mariadb]
host=127.0.0.1:3306
dbname=pompiers
user=pompier_user
password=123+azeExecute the seeder script :
php ./sql/seeder.php Finally, run the app:
composer serveand go to http://localhost:8080.