Skip to content

"PHP MVC Framework" apprend à construire un framework MVC personnalisé en PHP, en abordant des sujets tels que le routage, les contrôleurs, les modèles, la validation des formulaires, l'authentification des utilisateurs et l'intégration de Docker avec MySQL.

Notifications You must be signed in to change notification settings

ISTIFANO/Build-PHP-MVC-Framework

Repository files navigation

Web Application with MVC Architecture

Project Overview

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.

Features

  • 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.

Getting Started

Prerequisites

  • PHP (>=7.4 recommended)
  • Composer (optional, if you're using dependencies)

Installation

  1. Clone the repository to your local machine:

    git clone <repository-url>
  2. Navigate to the public directory where the entry point (e.g., index.php) is located:

    cd public
  3. Start the PHP built-in server:

    php -S localhost:8000
  4. Open your browser and visit http://localhost:8000 to view the application.

Project Structure

  • public/ - The public folder where the front-facing files (like index.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.

Contributing

  1. Fork the repository.
  2. Create a new branch for your feature.
  3. Commit your changes.
  4. Push to your forked repository.
  5. Submit a pull request.

Acknowledgments

  • PHP and the PHP community for the language and the tools.
  • Contributors who have made this project possible.

About

"PHP MVC Framework" apprend à construire un framework MVC personnalisé en PHP, en abordant des sujets tels que le routage, les contrôleurs, les modèles, la validation des formulaires, l'authentification des utilisateurs et l'intégration de Docker avec MySQL.

Resources

Stars

Watchers

Forks

Packages

No packages published