Download the PHP package genj/short-url-bundle without Composer
On this page you can find all versions of the php package genj/short-url-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package short-url-bundle
GenjShortUrlBundle
Provides a way to redirect requests based on an Entity stored in the database. Features:
- redirect client based on the request path, e.g. '/something'
- internal and external redirects to a path or url
- with start/end datetime
- configurable http status code
- keeps the query string parameters when redirecting
Installation
Add this to your composer.json:
Then run composer update
. After that is done, enable the bundle in your AppKernel.php:
Finally, update your database schema:
And you're done.
Usage
Add a new record to your database. Example:
- source: /my-old-url
- target: /my-new-url
- httpStatusCode: 301
- publishAt: (now)
FAQ
My redirect is not working through app.php, but it works through app_dev.php
If you have enabled caching, it can happen that a 404 response is stored in the http cache, so clear your caches. The redirect requests themselves have private caching headers.
All versions of short-url-bundle with dependencies
PHP Build Version
Package Version
Requires
symfony/symfony Version
>=2.5,<3.0-dev
sensio/framework-extra-bundle Version ~3.0
gedmo/doctrine-extensions Version ~2.3
sensio/framework-extra-bundle Version ~3.0
gedmo/doctrine-extensions Version ~2.3
The package genj/short-url-bundle contains the following files
Loading the files please wait ....