Dans le développement d’applications web modernes, une architecture bien structurée est essentielle pour assurer la maintenabilité, la scalabilité et la sécurité du code.
Ce projet vise à construire une architecture MVC propre et modulaire qui peut être utilisée comme base pour diverses applications web. L’accent sera mis sur la séparation des responsabilités, la réutilisabilité du code et l’utilisation des meilleures pratiques en développement PHP.
- Modular MVC Architecture: The application follows the MVC (Model-View-Controller) pattern, making it easy to separate concerns and scale.
- Reusability: Code is organized into distinct modules, making it reusable across different parts of the app.
- Best Practices: The project follows modern PHP development best practices for clean and maintainable code.
- PHP Built-in Server: The app can be run locally using PHP’s built-in web server.
- PHP (>=7.4 recommended)
- Composer (optional, if you're using dependencies)
-
Clone the repository to your local machine:
git clone <repository-url>
-
Navigate to the
public
directory where the entry point (e.g.,index.php
) is located:cd public
-
Start the PHP built-in server:
php -S localhost:8000
-
Open your browser and visit
http://localhost:8000
to view the application.
public/
- The public folder where the front-facing files (likeindex.php
) reside.app/
- The core application directory containing models, controllers, and views.Model/
- Contains the business logic and data structure of the application.Controller/
- Manages user input, communicates with models, and returns views.View/
- Handles the presentation and rendering of the UI.
- Fork the repository.
- Create a new branch for your feature.
- Commit your changes.
- Push to your forked repository.
- Submit a pull request.
- PHP and the PHP community for the language and the tools.
- Contributors who have made this project possible.