Pnd is a minimal set of non-OO micro-libraries for PHP 5.3+.
Use only the libs you need:
index.php
<?php
require '/path/to/pnd.php';
// include only the libs you need
requires ('template', 'form');
// do what you want to do...
?>
Libs can also be included directly without having to explicitly include pnd.php
and use requires
:
index.php
<?php
require '/path/to/pnd/template/template.php';
// invoke template funcs...
?>
To know more about the libs read the documentation available in their respective folders.
Use Pnd.glue, a micro-framework built by combining a few Pnd libs:
index.php
<?php
require '/path/to/pnd/glue/glue.php';
handle_get('/', function ()
{
return 'Hello World';
});
respond();
?>
Download the latest version of Pnd:
$ curl -L http://github.com/sandeepshetty/pnd/tarball/master | tar xvz
$ mv sandeepshetty-pnd-* pnd