Download the PHP package ameotoko/backend-redirect without Composer

On this page you can find all versions of the php package ameotoko/backend-redirect. 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 backend-redirect

Backend Redirect

Backend Redirect Bundle is an extension for Contao CMS version 4.

Installation

Use Composer to add the bundle to your Contao application:

Usage

This bundle adds a backend route to your application (/contao/redirect by default). You can supply a query string to it, and it will redirect you to a correspondent backend module after adding proper request token and ref. If you have to login, you'll be redirected to /contao/login first.

Why?

Sometimes you might want to let your backend users to access a record editing form, using a direct link, like /contao?do=members&act=edit&id=42. For instance, your application might be sending notifications to your editors, where they can click on such a link in the email and proceed directly to editing the record.

Prior to version 5.1, Contao's backend firewall will not let you do it directly – it will force your editors to go through a confirmation screen like this:

which is not a good UX for your editors. With this extension, you can give them links like this:

It will redirect to:

NOTES:

  1. This will only work for idempotent actions that do not directly change or delete database records, such as e.g. ?act=edit. In other cases, request token will not be added, and Contao's token check will still kick in.
  2. Starting from version 5.1, Contao does not require request token for idempotent actions anymore, so you do not need this bundle (see contao/contao#5461).

Configuration

You can customize the URL path using route prefix:

The endpoint will now be https://example.com/contao/my-redirect.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT


All versions of backend-redirect with dependencies

PHP Build Version
Package Version
Requires contao/core-bundle Version ^4.9
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 ameotoko/backend-redirect contains the following files

Loading the files please wait ...