Skip to content

My own personal MVC Framework. Mostly made to learn more and have fun, but it might be useful.

Notifications You must be signed in to change notification settings

BaconSoap/Andrew-s-PHP-MVC-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

My own personal MVC Framework. Mostly made to learn more and have fun, but it might be useful.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published