Download the PHP package zenstruck/redirect-bundle without Composer

On this page you can find all versions of the php package zenstruck/redirect-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package redirect-bundle

ZenstruckRedirectBundle

CI Latest Version Total Downloads

This bundle adds entities for redirects and 404 errors.

For redirects, 404 errors are intercepted and the requested path is looked up. If a match is found it redirects to the found redirect's destination. The count and last accessed date are updated as well. A redirect form type and validation is available as well.

404 errors can be logged as well. Each 404 error is it's own record in the database. The path, full URL, timestamp, and referer are stored. Storing each error as a separate record allows viewing statistics over time and seeing all the referer URLs. When a redirect is created or updated, 404 records that match it's path are deleted.

Installation

  1. Install with composer:

  2. Enable the bundle: This Step is only needed if you are not using Symfony Flex.

Configuration

NOTE: A NotFound or Redirect or both must be configured.

Redirect

  1. Create your redirect class inheriting the MappedSuperClass this bundle provides:

  2. Set this class in your zenstruck_redirect.yml:

  3. Update your schema (or use a migration):

NotFound

  1. Create your not found class inheriting the MappedSuperClass this bundle provides:

  2. Set this class in your zenstruck_redirect.yml:

  3. Update your schema (or use a migration):

Form Type

This bundle provides a form type (zenstruck_redirect) for creating/editing redirects.

You may want to disable the source field for already created redirects:

Full Default Configuration


All versions of redirect-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
doctrine/doctrine-bundle Version ^2.6
doctrine/orm Version ^2.6|^3.0
symfony/framework-bundle Version ^5.4|^6.0|^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zenstruck/redirect-bundle contains the following files

Loading the files please wait ....