<commit_before>Roller
======

PHP Roller is a simple/fast router for PHP5.3.

Roller uses simple array to store routes, so it's fast.

[![Build Status](https://secure.travis-ci.org/c9s/Roller.png)](http://travis-ci.org/c9s/Roller)

FEATURES
--------

- Highly customizable
- Flexible
- Simple DSL (Sinatra-like syntax)
- APC cache support.
- File cache support.
- Built-in **RESTful** route generator, resource handler.
- Customizable RESTful route generator, resource handler.
- Simple, Useful route path syntax. (rails-style)
- High performance (through PHP extension, can dispatch **1607%** faster than pure php version)
- High unit test coverage, coverage > **88%**.
- Ready for Frameworks.
- Annotation reader support.


ROUTE CONSOLE DUMPER
--------------------

<img src="https://github.com/c9s/Roller/raw/master/misc/img1.png" width="500">

INSTALL
-------

Install through PEAR:

    sudo pear channel-discover pear.corneltek.com
    sudo pear install corneltek/Roller

Or clone this repository:

    sudo pear install -f package.xml

Use thie library as a git submodule: clone this repository, pick up a PSR-0 classloader, and add `src/` to class
path.

To use console dumper, you need ezc/ConsoleTools, please use PEAR
installer to install:

    sudo pear channel-discover components.ez.no
    sudo pear install -a ezc/ConsoleTools

SYNOPSIS
--------

Roller router provides a simple DSL for you to declare sinatra-like routes:

```php
require 'bootstrap.php';
require 'Roller/DSL.php';

on('/path/to/:date',function() {


    return 'your content';<commit_msg>remove sudo keyword<commit_after>Roller
======

PHP Roller is a simple/fast router for PHP5.3.

Roller uses simple array to store routes, so it's fast.

[![Build Status](https://secure.travis-ci.org/c9s/Roller.png)](http://travis-ci.org/c9s/Roller)

FEATURES
--------

- Highly customizable
- Flexible
- Simple DSL (Sinatra-like syntax)
- APC cache support.
- File cache support.
- Built-in **RESTful** route generator, resource handler.
- Customizable RESTful route generator, resource handler.
- Simple, Useful route path syntax. (rails-style)
- High performance (through PHP extension, can dispatch **1607%** faster than pure php version)
- High unit test coverage, coverage > **88%**.
- Ready for Frameworks.
- Annotation reader support.


ROUTE CONSOLE DUMPER
--------------------

<img src="https://github.com/c9s/Roller/raw/master/misc/img1.png" width="500">

INSTALL
-------

Install through PEAR:

    pear channel-discover pear.corneltek.com
    pear install corneltek/Roller

Or clone this repository:

    pear install -f package.xml

Use thie library as a git submodule: clone this repository, pick up a PSR-0 classloader, and add `src/` to class
path.

To use console dumper, you need ezc/ConsoleTools, please use PEAR
installer to install:

    pear channel-discover components.ez.no
    pear install -a ezc/ConsoleTools

SYNOPSIS
--------

Roller router provides a simple DSL for you to declare sinatra-like routes:

```php
require 'bootstrap.php';
require 'Roller/DSL.php';

on('/path/to/:date',function() {


    return 'your content';
{'fraction_non_alphanumeric': 0.13056, 'fraction_numerical': 0.01024, 'mean_word_length': 3.4785100286532953, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '272963', 'n_tokens_mistral': 1020, 'n_tokens_neox': 966, 'n_words': 336}