Giter VIP home page Giter VIP logo

andrew-s-php-mvc-framework's Introduction

Andrew's PHP MVC Framework

Introduction

Hi, I'm Andrew, and this is my PHP MVC Framework. I have a two-week span of 6 free hours every day, and I felt the urge to learn and create. I've been playing in Ruby on Rails for a while, and I missed PHP. CakePHP is nice and all, but I didn't feel like using it. It felt wrong. To that end, I have created this framework, and using time every day to develop it. Don't expect greatness, or stability, or security; this is mostly just me having fun.

Installation

  1. Download source and place in a folder
  2. Go to app/config.php
  3. Edit the base path and style path
  4. (optional) If you want (BASIC) model functionality, make sure to put in valid database options. Make sure to create the database and a table with the model's name. Ex: 'Posts_Model' needs a table named 'posts'
  5. Look through the documentation, the comments, and the code for usage.

Don't forget to add to the routes.php file if you want more actions.

Named Scopes

There are now basic named scopes, supporting WHERE and ORDER BY. A named scope is defined in an individual model, and when calling them, you must use the format $this->model_instance->scope()->...->scope()->select()->...->now(). Example: $this->posts->recent->select(*)->now();

andrew-s-php-mvc-framework's People

Contributors

baconsoap avatar

Watchers

 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.