Phraw 0.3


Phraw is a mini-framework for web sites and web applications. It's open source, fast, flexible and has a very small footprint.

Features of Phraw:
- Very small and lighweight core - only 6.9 KB (130 lines of code)!
- Flexible - you have the full control of the application
- Very fast to learn - documented code and examples (more guides and recipes will be published soon)
- It leverages Smarty, the best template engine for PHP (...and you can change it if you want)
- Flexible urls - great for SEO!
- Template caching - with Smarty
- MVCP pattern - Model View Control Presenter, but also MVC or VCP and VC!
- Redirects
- Detection and correction of the trailing slash - useful for SEO
- Client error headers
- Success headers
- Bulk route - a flexible way to route a lot of similar pages in one shot

- PHP 5 (tested with PHP 5.3)
- Smarty (optional but it's the default template engine)

- Create your project directory (e.g. "") and enter in it.
- Create the "lib" directory and copy all your libraries, like Phraw and Smarty, in it.
- Chose an example from the "examples" directory and use it as a template, remember to copy also the hidden file ".htaccess".
- Set the directories "resources/compliled" and "resources/cached" writable by PHP.

What's New In This Version:
- Rain TPL template engine - very fast but also very simple
- Session handling - customizable and replaceable
- 3 routing methods: equal comparison, regular expression, regular expresion in parenthesis (simpler)
- Custom routing
- Tree route - a flexible way to route through a hierarchy of pages in one shot

License type: BSD
Date added: 4 years, 3 months 20 days ago | Last updated: 4 years, 3 months 19 days ago

More popular Framework

Listing Files

  • README.rst
  • 399 Bytes
  • 02/22/2011 18:21:48
  • 2.0 KB
  • 02/22/2011 18:20:22
example 1
  • README.rst
  • 1.2 KB
  • 02/22/2011 16:52:12
List All Files