A simple MVC(Model View Controller) Boilerplate application in PHP. You can use this repository for teaching PHP primer and introduction to MVC design pattern.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Composer PHP package manager [https://getcomposer.org]
- Make sure that you have PHP7 and higher running on your local server environment.
1)Install Composer PHP package manager [https://getcomposer.org]
2)Clone this Repository in CLI by running -
git clone https://github.com/dev-haykay/MVCBoilerplate.git
Make sure that you put this repository INSIDE any of local server environment (XAMPP/MAMP/WAMP)
-
Go to
config.php
and change the name for the db as well as username and password to access it. -
In your command line application, navigate to the folder where the cloned repository exists.
-
Before starting the app, please run:
composer install
- Now you can open any browser and open up this repo. E.g.
http://localhost/MVCBoilerplate
-
A MySQL based boilerplate. Once installed, it is a basic PHP app with User interface for Logging In and Different pages(About, Contact, Index, User) can be seen.
-
The Views, Database and Controllers are separately stored in app folder which can be edited as per convenience.
-
Public Folder has the Static CSS JS content displayed through PHP Server (XAMPP/MAMP/WAMP).
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md file for details