prob/rewrite-helper

A library for path of url using mod_rewrite

Installs: 104

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/prob/rewrite-helper

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

This package is not auto-updated.

Last update: 2025-10-23 08:14: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