GithubHelp home page GithubHelp logo

ahmedyahyae / plain-php-mvc-oop-estore Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 2.52 MB

A plain PHP and MySQL robust MVC Pattern OOP web-based Electronic Store Application

PHP 13.96% Hack 0.01% CSS 6.36% JavaScript 79.68%
authentication authorization cookies design-patterns mvc mysql oop oop-php php plain-php

plain-php-mvc-oop-estore's Introduction

A plain PHP and MySQL robust MVC Pattern OOP web-based Electronic Store Application

A plain PHP and MySQL Electronic Store/Inventory Application which follows a robust MVC Pattern (Model-View-Controller Architecture i.e. Separation of Concerns), and is completely Object-oriented (OOP). This project script is written entirely in plain PHP and aims to demonstrate the implementation of an e-store/inventory system without relying on any external libraries or frameworks.

The e-store is Multilingual (English and Arabic).

Screenshots:

MVC Design Pattern:

mvc-design-pattern

Features:

1- MVC design pattern / Front Controller Pattern.

2- Routing System, Service Container, Middlewares, Entry Point/Script file (index.php).

3- Multilingual Support (English and Arabic).

4- User Registration, Validation Class, Authentication Class and Authorization.

5- Login System (Session Management) (Session Class).

6- User Roles (User Groups) and Permissions/Privileges.

7- File Upload, Session, Registry, Language, Messenger, Autoloading ... Classes.

Installation & Configuration:

1- Clone the project or download it.

2- Create a MySQL database named `storedb` and import the database SQL Dump File from storedb database SQL Dump File.sql. Navigate to 'Database - storedb/storedb database - SQL Dump File - PhpMyAdmin Export.sql' SQL Dump file.

3- Navigate to the application configuration file in 'app/config/config.php' file and configure/edit/update the file with your MySQL database credentials and other configuration settings.

4- Navigate to the project "public" folder/directory (where the Entry Point index.php file is placed) by using the cd terminal command, and then start your PHP built-in Development Web Server by running the command: php -S localhost:8000.

**Note: Whatever your Web Server is, you must configure its Web Root Directory to be the application "public" folder which contains the index.php file (Entry Point) in order for the application Routing System to function properly.

5- In your browser, go to http://localhost:8000/

6- A ready-to-use registered user account credentials are:

Username: Ahmed Yahya, Email: [email protected], Password: 123456

Contribution:

Contributions to my plain PHP and MySQL MVC OOP e-store application are most welcome! If you find any issues or have suggestions for improvements or want to add new features, please open an issue or submit a pull request.

plain-php-mvc-oop-estore's People

Contributors

ahmedyahyae avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.