Skip to content

aoamusat/MVCBoilerplate

Repository files navigation

MVCBoilerplate

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.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  1. Composer PHP package manager [https://getcomposer.org]
  2. Make sure that you have PHP7 and higher running on your local server environment.

Installation

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)

  1. Go to config.php and change the name for the db as well as username and password to access it.

  2. In your command line application, navigate to the folder where the cloned repository exists.

  3. Before starting the app, please run:

composer install

  1. Now you can open any browser and open up this repo. E.g. http://localhost/MVCBoilerplate

Start-Guide

  1. 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.

  2. The Views, Database and Controllers are separately stored in app folder which can be edited as per convenience.

  3. Public Folder has the Static CSS JS content displayed through PHP Server (XAMPP/MAMP/WAMP).

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A simple Boiler plate for MVC application in PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published