English · Français
Ligue 1 is a PHP project for managing data about the French Ligue 1 football league. It uses an MVC (Model-View-Controller) architecture to keep the code organised and make it easier to evolve.
It is designed to run locally with XAMPP and includes user interfaces, database management and dynamic navigation through a custom router.
Ligue1/
|-- avatars/ # User avatars
|-- config/ # Project configuration (settings files)
|-- Controleur/ # Controllers (application logic)
|-- img/ # Static images
|-- logs/ # Error and activity logs
|-- Models/ # Models (data handling and database access)
|-- nbproject/ # NetBeans project files (if applicable)
|-- style/ # Stylesheets (CSS)
|-- Vues/ # Views (user interfaces)
|-- .htaccess # Apache URL rewriting
|-- check_email.php # Email validation
|-- footer.php # Shared footer
|-- index.php # Main entry point
|-- logout.php # Logout handling
|-- menu.php # Shared navigation menu
|-- Router.php # Routing
|-- utils.php # Shared helper functions
-
Email validation:
check_email.phpchecks the emails submitted by users. -
Session handling:
logout.phplogs a user out securely. -
Navigation:
Router.phpdispatches requests to the right controllers and actions. -
MVC architecture, split into three layers:
- Model (
Models/): database access. - View (
Vues/): user interfaces. - Controller (
Controleur/): application logic, linking models and views.
- Model (
-
Logging: the
logs/folder stores log files to track errors and events.
- Web server: Apache (included in XAMPP)
- PHP: 7.4 or higher
- Database: MySQL (included in XAMPP)
- Browser: any recent browser (Chrome, Firefox, Edge, etc.)
-
Clone this repository into XAMPP's
htdocsfolder:git clone https://github.com/lburdier/ligue1.git
-
Import the database with the SQL file provided with the project:
mysql -u root -p < createLigue1_v2.sql -
Start Apache and MySQL from XAMPP.
-
Open the app in your browser:
http://localhost/ligue1
Contributions are welcome:
- Fork this repository.
- Create a branch for your feature:
git checkout -b my-feature
- Open a pull request.
Built by Lucas Burdier, as a PHP application for managing sports data.
This project is licensed under the MIT license.