Skip to content

Web application in PHP coded as part of our two-year studies in IT

Notifications You must be signed in to change notification settings

valentinRyckaert/Piment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

179 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Piment

Presentation

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)

Project installation

dependencies to install :

  • php
  • composer
  • php-mysqlnd
git clone https://github.com/valentinRyckaert/Piment.git
cd Piment
composer install

Connect 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.sql

Create a "config.ini" file at the root of the project :

[mariadb]
host=127.0.0.1:3306
dbname=pompiers
user=pompier_user
password=123+aze

Execute the seeder script :

php ./sql/seeder.php 

Finally, run the app:

composer serve

and go to http://localhost:8080.

About

Web application in PHP coded as part of our two-year studies in IT

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •