nphp


Minimalistic fully object oriented PHP library for fast and easy web development.

Provides routing and controller parts for MVC architecture. You're free to use any templating engine and any form of data storage for your web applications. It's open sourced, MIT licensed, so possible to use in commercial applications.


Minimal application:
<?php

require_once("nphp/nphp.php");

class IndexController extends Nphp_ControllerAbstract {
    public function get($request) {
        return "hello world!";
    }
}

$app = new Nphp_Application();
$app->setRoutes(array('^/$' => 'IndexController'));
$app->start();

Features

  • url routing - using native php regular expressions
  • simple request and response objects
  • easily extensible - using basic PHP OOP features
  • using PHP as templating language, but feel free to choose your own templating engine
  • effortless debugging with intaractive debugging page