prob/rewrite-helper

A library for path of url using mod_rewrite

dev-master 2016-08-25 02:44 UTC

This package is not auto-updated.

Last update: 2024-05-09 01:33:10 UTC


README

A library for path of url using mod_rewrite

Build Status codecov

Usage

basic

<?php

use Prob\Rewrite\Url;

$url = new Url();
$url->setSite('http://somesite.com');
$url->setDispatcher('index.php');
$url->setPath('/post/56');

echo $url->parse();         // http://somesite.com/post/56
echo $url->parse(false);    // http://somesite.com/index.php/post/56