Download the PHP package samsonasik/expressive-redirect-handler without Composer

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

ExpressiveRedirectHandler

PHP version Build Status Coverage Status Downloads

This is README for version ^2.0 which only support Mezzio version 3 with php ^7.1.

For version ^1.0, , you can read at version 1.* readme which support ZF Expressive version 3 with php ^7.1.

For version 0., you can read at [version 0. readme](https://github.com/samsonasik/ExpressiveRedirectHandler/tree/0.x.x) which still ZF Expressive version 1 and 2 with php ^5.6|^7.0 support.

ExpressiveRedirectHandler is a package that contains Mezzio middleware for handling redirect that fit with mezzio-skeleton for following conditions:

  1. When the given url to RedirectResponse is not registered in routing config

For example, we use RedirectResponse instance in our Middleware:

if the passed $redirect as url is a valid and registered in the routes, it uses default RedirectResponse implementation, otherwise, it will redirect to default default_url registered in config/autoload/expressive-redirect-handler.local.php:

For example, we define:

It means, we can't allow to make redirect to outside registered routes, whenever found un-registered url in routes, then we will be redirected to default_url. It also disable redirect to self, so you can't redirect to self.

For specific urls that exceptional ( allowed to be redirected even not registered in routes), you can register at exclude_urls/exclude_hosts options.

if you define exclude_urls/exclude_hosts options, which one of them is your own current url/host/domain, its your risk to still get "infinite" redirection loops. so, make sure exclude_urls/exclude_hosts is not your current own.

  1. When you want to redirect to specific url based on header status code

Based on the configuration above, when header status code is 401 or 503, it will be redirected to its paired value.

Installation

at the very first pipeline records.

Contributing

Contributions are very welcome. Please read CONTRIBUTING.md

Credit


All versions of expressive-redirect-handler with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
jeremykendall/php-domain-parser Version ^5.0
laminas/laminas-diactoros Version ^1.7.1
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 samsonasik/expressive-redirect-handler contains the following files

Loading the files please wait ....