GithubHelp home page GithubHelp logo

kallehauge / mvc-framework Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 236 KB

Basic MVC framework to harvest the benefits of the popular architectural pattern

License: MIT License

PHP 100.00% CSS 0.01% JavaScript 0.01%

mvc-framework's Introduction

Introduction

This is a basic PHP-framework that I have started due to school purposes and learning. The project will slowly expand as I face more and more demands from my education since I plan to use it in my projects.

Disclaimer: this isn’t finished software. If you’re looking for a framework to use for commercial purposes then I suggest you look at something like CodeIgniter, CakepPHP, Zend or Symfony instead.

Capabilities

  • MVC structure.
  • Choose between: PDO or MySQLi.
  • Router: handles up to 5 arguments per route.
  • Helpers: url.

Installation

  1. Download / clone repo.
  2. Edit "./config.php".
  3. You're done.

Router

This is an example of how the paths for the router could look like. Stars symbolises variable values and will be parsed to the provided function as arguments.

$router['test'] = "index/test";
$router['test/*'] = "index/test/*";
$router['test/*/*'] = "index/test/*/*/";
$router['test/*/*/*'] = "index/test/*/*/*";

Tree structure

|-- application
|   |-- controllers
|   |-- models
|   |-- views
|-- public
|   |-- css
|   |-- js
|-- system

Contributing

The project in itself have no real future plans nor will it be abandoned completely. I'm slowly adding to it and improving it over time when I need more for school purposes since I will continue to use it for exams projects.

With that said; if you have any improvements you feel like pushing, then I’ll be more than happy to accept them if they help in any way.

License

MIT License

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.