mardy-git / redirect
This package is abandoned and no longer maintained.
No replacement package was suggested.
A simple redirect package.
v0.1.1
2013-06-07 07:16 UTC
Requires
- php: >=5.4
This package is not auto-updated.
Last update: 2015-08-05 08:48:09 UTC
README
A simple redirect package.
Installation
To install this use composer by adding
"mardy-git/redirect": "dev-master"
to your composer.json file
Usage Example
use Mardy\Redirect\Redirect; $redirect = new Redirect; //with all options set (You can set your own headers, these are only examples) $redirect->go( "http://www.google.com", Redirect::HTTP_STATUS_302, [ 'Content-Type' => 'text/html; charset=utf-8', 'Connection' => 'keep-alive', 'Expires' => 'Thu, 19 Nov 1981 08:52:00 GMT' ... ... ... ] ); //with just the URL and status $redirect->go( "http://www.google.com", Redirect::HTTP_STATUS_302 ); //lightweight with just the URL $redirect->go( "http://www.google.com" );