prob / rewrite-helper
A library for path of url using mod_rewrite
dev-master
2016-08-25 02:44 UTC
Requires
- php: >=5.3
Requires (Dev)
This package is not auto-updated.
Last update: 2024-11-21 03:52:19 UTC
README
A library for path of url using mod_rewrite
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