Giter Club home page Giter Club logo

php-mvc-framework's Introduction

PHP MVC framework

Minimalistic custom framework created for educational purposes.

The framework is not well tested on production. If you use it on production you use it on your own risk.

Related core package: https://github.com/thecodeholic/tc-php-mvc-core


Installation

  1. Download the archive or clone the project using git
  2. Create database schema
  3. Create .env file from .env.example file and adjust database parameters (including schema name)
  4. Run composer install
  5. Run migrations by executing php migrations.php from the project root directory
  6. Go to the public folder
  7. Start php server by running command php -S 127.0.0.1:8080
  8. Open in browser http://127.0.0.1:8080

Installation using docker

Make sure you have docker installed. To see how you can install docker on Windows click here.
Make sure docker and docker-compose commands are available in command line.

  1. Clone the project using git
  2. Copy .env.example into .env (Don't need to change anything for local development)
  3. Navigate to the project root directory and run docker-compose up -d
  4. Install dependencies - docker-compose exec app composer install
  5. Run migrations - docker-compose exec app php migrations.php
  6. Open in browser http://127.0.0.1:8080

The project was created along with Youtube Video Series "Build PHP MVC Framework". I appreaciate if you share it.

php-mvc-framework's People

Contributors

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