Only requirement for nphp is PHP 5.3 or newer. Mod_rewrite is suggesed for deployment with Apache, although it runs on every HTTP server that supports PHP.
git clone git://github.com/akristof/nphp.git
to clone repository.
nphp.php
file in your index.php
and start developing, read documentation, use project skeleton for easier start or try 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();