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
Requires
- php: >=5.3
Requires (Dev)
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
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