A minimal set of non-OO libraries for PHP 5.3+
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.staging
glue
handler
helper
path
request
response
str
template
uri
webserver
LICENSE.txt
README.md
pnd.php
pnd.test.php
retest.php

README.md

Pnd

Pnd is a minimal set of non-OO micro-libraries for PHP 5.3+.

Need Less?

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.

Need More?

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

?>

Getting Started

Download the latest version of Pnd:

$ curl -L http://github.com/sandeepshetty/pnd/tarball/master | tar xvz
$ mv sandeepshetty-pnd-* pnd