Download the PHP package terminal42/contao-url-rewrite without Composer

On this page you can find all versions of the php package terminal42/contao-url-rewrite. 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 contao-url-rewrite

URL Rewrite bundle for Contao Open Source CMS

The extension provides a new way for Contao to set various URL rewrites. The available config providers are:

Behind the scenes the rules are added as routes to the internal application router which allows to use all the features provided by the Symfony Routing component.

Installation

Install the bundle via Composer:

Migration of short URLs

Since the extension fritzmg/contao-short-urls has been abandoned, you can migrate short URLs to URL rewrites with the extension bwein-net/contao-migrate-short-urls.

Configuration

Bundle configuration

The bundle configuration is optional. Here you can define the entries and disable the backend management module.

Note: if you want to use the % character, make sure it is properly escaped by doubling it %%.

Running under non Contao managed edition

If you are running the Contao Managed Edition then the extension should work out of the box. For all the other systems you have to additionally register the routing configuration in the config files:

Examples

  1. Find address on Google Maps:

  2. Redirect to a specific news entry:

  3. Rewrite legacy URLs with query string:

  4. Rewrite URLs including slashes (without query string) to new domain:

Create a custom config provider

In addition to the existing providers you can create your own class that provides the rewrite configurations. The new service must implement the Terminal42\UrlRewriteBundle\ConfigProvider\ConfigProviderInterface interface and be registered with the appropriate tag:

Resources

  1. Symfony Routing
  2. Symfony Routing Component
  3. How to Restrict Route Matching through Conditions
  4. How to Define Route Requirements

All versions of contao-url-rewrite with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.0
contao/core-bundle Version ^4.13 || ^5.0
symfony/config Version ^5.0 || ^6.0
symfony/dependency-injection Version ^5.0 || ^6.0
symfony/expression-language Version ^5.0 || ^6.0
symfony/filesystem Version ^5.0 || ^6.0
symfony/http-foundation Version ^5.0 || ^6.0
symfony/http-kernel Version ^5.0 || ^6.0
symfony/routing Version ^5.0 || ^6.0
bacon/bacon-qr-code Version ^2.0
doctrine/dbal Version ^2.11 || ^3
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 terminal42/contao-url-rewrite contains the following files

Loading the files please wait ....