This project is an online shopping platform built with PHP, OOP, MVC and MySQL. It allows users to browse and purchase products, manage their cart, checkout and place orders.
- Browse products by categories
- Add products to the cart
- Update cart items
- Remove cart items
- Checkout and place orders
- PHP
- MySQL
- HTML/CSS
- JavaScript
- Bootstrap
- Clone the repository:
git clone https://github.com/demarillacizere/online-shop.git
- Move the folder to the XAMPP htdocs folder.
- Import the SQL database from
database.sql
- Run the project using a local web server (e.g., Apache) or a development environment (e.g., XAMPP)
- Access the project in your browser:
http://localhost/online-shop/
Online-shop
public/
- Public assets directorycss/
- CSS filesjs/
- JavaScript filesimages/
- Constant images on the pagesdb-img/
- Images from uploaded from pages to db
src/
- Source code directoryApp/
- Contains router fileControllers/
- Contains controller classesModels/
- Contains model classesViews/
- Contains view templates
vendor/
- Contains composer filesdatabase.sql
- SQL database fileindex.php
- The entry file to the shop
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository
- Create a new branch for your feature/bugfix:
git checkout -b feature-name
- Make your changes and commit them:
git commit -m "Description of changes"
- Push to your branch:
git push origin feature-name
- Open a pull request on GitHub
This project is licensed under the MIT License - see the LICENSE file for details.