Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.49 KB

README.md

File metadata and controls

47 lines (35 loc) · 1.49 KB

PHP MVC Tester Company

A demo repo for a company system built with PHP, MVC (Model-View-Controller) architecture, and SQL to manage customers efficiently.


📋 Features

This project includes the following functionalities:

  • Class Customer: Represents a customer.
  • Class CustomerDB: Provides methods to interact with the database.
  • Class CustomerController: Handles user actions and coordinates the workflow.

Pages

  • list.php: Displays a paginated list of customers (6 customers per page) with their name, email, and address.
  • add.php: Provides a form to add a new customer.
  • edit.php: Contains a form to update customer details.
  • delete.php: Contains a form to delete a customer.
  • view.php: Displays detailed information about a customer.

🚀 Environment Setup for Testing

To test this project, ensure you have the following environment configured:

  1. Local Development Environment:
    Laragon (Recommended for a lightweight and flexible local server setup)

  2. PHP Version:
    PHP 8.1+

  3. Database:
    MariaDB/MySQL Server

    • localhost:3306
    • dbname: qlkh_tester_aht
    • Username: root
    • Password: (leave empty)

💡 How to Run

  1. Clone this repository:
    git clone https://github.com/your-username/php-mvc-tester-company.git
    
  2. Need download Laragon to run project in path /www/php-mvc-tester-company:
    and enjoy it ❤️