Giter Club home page Giter Club logo

simple-mvc-php-framework's Introduction

Simple MVC PHP Framework

Description

Some years ago I taught a programming course for a private training school. I built a simple ecommerce with the students. This ecommerce was based on a simple MVC framework based on PHP. Then, people who have continued with code and programming, already had a smattering of what means MVC before get their hands on a real framework. With this repo I am going to show you how create a simple PHP application following the MVC pattern (Model-View-Controller).

Requirements

PHP >=7.1.20 Composer

Tested on

PHP 7.1.20 Apache

Installation

git clone https://github.com/gmaccario/simple-mvc-php-framework.git

Or download the package from Github.

Then:

  1. Set up and run your webserver (e.g. Apache);
  2. Open your browser;
  3. Go to the index page (often localhost).

Note: if you decided to put the framework into a subfolder, open /config/config.php and set up the name of the subfolder here URL_SUBFOLDER

# Simple MVC PHP Framework on my blog

https://www.giuseppemaccario.com/how-to-build-a-simple-php-mvc-framework/

simple-mvc-php-framework's People

Contributors

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