The Plug - Revamp is a PHP/MySQL e-commerce web application developed as part of a university web development project.
This version builds on the original The Plug application and was developed as a separate implementation for another module, with a focus on server-side PHP development, database interaction and e-commerce functionality.
- User registration and login
- User authentication and sessions
- Product browsing
- Product details
- Product variants
- Shopping cart
- Checkout
- Order confirmation
- Order history
- Product reviews
- Admin authentication
- Admin dashboard
- User management
- Product management
- Product creation
- Product editing
- Product deletion
- Product variant management
- PHP
- MySQL
- HTML5
- CSS3
- JavaScript
The application is organised into several components:
admin/- Administrative functionalityclasses/- Object-oriented PHP classescss/- Application stylesheetsimages/- Product and application imagesjs/- Client-side JavaScript- PHP files in the project root - User-facing application pages and shared components
The project uses object-oriented PHP classes to separate parts of the application logic.
Key classes include:
ProductProductManagerProductVariantUserUserManager
These classes are used to manage products, product variants and user-related functionality.
The application uses MySQL for persistent data storage.
Database functionality is used for areas including:
- Users
- Products
- Product variants
- Shopping carts
- Orders
- Reviews
The main purchasing workflow follows:
Browse Products → View Product → Select Variant → Add to Cart → Checkout → Order Confirmation → Order History
Administrators can manage the application's products, variants and users through the dedicated admin area.
Admin workflow:
Admin Login → Admin Dashboard → Manage Products / Manage Variants / Manage Users
The main project directories include:
admin/- Administrative pages and functionalityclasses/- PHP application classescss/- Stylesheetsimages/- Images and assetsjs/- JavaScript files
Key application pages include:
index.phpproducts.phpproduct_detail.phpcart.phpcheckout.phpconfirmation.phporder_history.phpsign_in.phpsign_up.php
- PHP
- MySQL
- Apache or another PHP-compatible web server
-
Clone the repository.
-
Place the project inside your local PHP/Apache web server directory.
-
Create the required MySQL database.
-
Configure the database connection in the project configuration.
-
Start Apache and MySQL.
-
Open the application through your local web server.
This project was developed as a university project and may require configuration changes depending on the local development environment.
This project was developed as a separate version of The Plug for another university module.
The project focuses on developing an e-commerce application using PHP and MySQL, with server-side processing, database interaction, authentication and administrative functionality.
Screenshots of the application can be added here to demonstrate the main user interface, product pages, checkout workflow and administrative dashboard.
Potential future improvements include:
- Improved input validation
- Expanded automated testing
- Additional administrative functionality
- Improved security configuration
- Additional payment functionality
- Further UI improvements
University project developed as part of a web development module.