Namespace-PIP
Namespace-PIP is a small framework made in PHP from PIP by Gilbert Pellegrom. It aims to be easy to use, but also to help the webmaster using it to make better code.
Features
Since Namespace-PIP is made from PIP, it shares its features. It also adds some features to it:
- Namespaces, allowing the code to be clearly structured.
- New routing system, allowing static routes and dynamic routes (depending on the class/method for example).
- Improved error handling, based on exceptions. Here, even PHP regular errors are morphed into exceptions.
- Some other additions.
Requirements
To make Namespace-PIP work, you'll need this :
- An Apache2 server with mod_rewrite enabled (and .htacess allowed)
- PHP, at least v5.3 (for namespaces)
- If you are using a database, PDO need to be activated.
Downloading and Installing
Downloading
You can download Namespace-PIP using 3 ways. These versions are always the snapshot of the last version of the framework, from its Git repository:
Installing
Installing Namespace-PIP is very simple. Everything is already pre-configured, the only things you need to do to make it work is:
- Extract the archive in a directory of your webserver.
- Go into the application/config folder, and rename config.sample.php into config.php
- Open it with a regular text editor and change the value of $config['base_url'] with the path to the application base directory, relative to your webserver's root.
- That's all for a basic configuration. Go to the right URL in your browser and you should see the default page showing up.