A demo repo for a company system built with PHP, MVC (Model-View-Controller) architecture, and SQL to manage customers efficiently.
- Class
Customer
: Represents a customer. - Class
CustomerDB
: Provides methods to interact with the database. - Class
CustomerController
: Handles user actions and coordinates the workflow.
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.
To test this project, ensure you have the following environment configured:
-
Local Development Environment:
Laragon (Recommended for a lightweight and flexible local server setup) -
PHP Version:
PHP 8.1+
-
Database:
MariaDB/MySQL Server- localhost:3306
- dbname:
qlkh_tester_aht
- Username:
root
- Password: (leave empty)
- Clone this repository:
git clone https://github.com/your-username/php-mvc-tester-company.git
- Need download Laragon to run project in path
/www/php-mvc-tester-company
:and enjoy it ❤️