Skip to content

RickySu/hhvm-ext-web-util

Repository files navigation

hhvm-ext-web-util

Build Status

hhvm-ext-web-util is a powerful collection of web utilities.

Collections

  • R3 a high performance URL router library.

Build Requirement

  • autoconf
  • automake
  • check
  • pkg-config

EXAMPLE

<?php
use WebUtil\R3;
$r = new R3();
$r->addRoute(
    '/{id:\\d+}.html',               // match condition 
    R3::METHOD_GET|R3::METHOD_POST,  // match method GET or POST
    'match /{id}.html'              // custom define data
);
$m = $r->match('/123.html', R3::METHOD_GET);  // request url with GET method
print_r($m);

Output

Array
(
    [0] => match /{id}.html
    [1] => Array
        (
            [0] => 123                // id parameters
        )

)

LICENSE

This software is released under MIT License.

About

Web utilities for hhvm extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published