https://github.com/jgcarrillo/php-mvc-tenis
A Basic MVC for tennis tournaments management written in PHP
https://github.com/jgcarrillo/php-mvc-tenis
bootstrap mvc-architecture php phpmyadmin sql tenis
Last synced: about 2 months ago
JSON representation
A Basic MVC for tennis tournaments management written in PHP
- Host: GitHub
- URL: https://github.com/jgcarrillo/php-mvc-tenis
- Owner: jgcarrillo
- Created: 2021-11-07T16:29:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-07T16:34:37.000Z (over 4 years ago)
- Last Synced: 2025-10-23T17:47:30.089Z (8 months ago)
- Topics: bootstrap, mvc-architecture, php, phpmyadmin, sql, tenis
- Language: PHP
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic PHP MVC for tennis tournaments management

## Table of contents 👇
- [✨ Explanation](#-explanation)
- [âš“ Try the mvc](#-try-the-mvc)
- [🚀 Usage](#-usage)
- [💛 Contact](#-contact)
### ✨ Explanation
This is a basic project to improve my PHP and **MVC** skills. It's part of an exercise that I did in my two year web development course, but I tried to rewrite the code using **clean code**.
The aim of the project is to show a tennis database (a simple one) that stores matches, players, tournaments and phases. I know the database could be improved to separate the results (for example) of each match into a single table that stores sets and the match id, but I prefer to keep it simple because this is a personal project to understand the MVC concepts.
### âš“ Try the mvc
1. Import the `db.sql` script into your PHPMyAdmin.
2. Go to your localhost and then to the `Torneos_controller.php` file to start the application.
3. If you want to change the database be careful and change the `config_db.php` accordingly.
### 🚀 Usage
The entry point of the application is the **Torneos_controller.php** file that manages all the routes and functions that the application needs to invoke to obtain the different pages. A better practise could be to separate the logic of the main application logic (routes) into a single file called **index.php** which loads the controller.
Anothe improvement for the project could be to put some of the views together (for example, the update/create view of the players), but I think it's a good starting point to separate the views due to understanding the application logic.
I have created a basic _CRUD_ for players and matches, so you can add a new match whitin a tournament. You can also create, edit and delete players.
### 💛 Contact
If you have some doubts or need to ask something about the project, feel free to reach me here:
- Twitter: [https://twitter.com/jgcarrillo](https://twitter.com/jgcarrillo_)
- LinkedIn: [https://es.linkedin.com/in/jgcarrilloweb](https://es.linkedin.com/in/jgcarrilloweb)
- Website: [https://jgcarrillo.com/](https://jgcarrillo.com/)