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

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

RedirectHandlerModule

PHP version Build Status Coverage Status Downloads

RedirectHandlerModule is a module for handling redirect when the given url to redirect plugin is not registered in your Laminas application. It simply override existing Laminas redirect plugin, so we can just use it.

This is README for version ^3.0 which only support Laminas 3 with php ^7.1.

For version 2, you can read at version 2 readme which still support ZF3 with php ^7.1 support.

For version 1, you can read at version 1 readme which still support ZF2 with php ^5.6|^7.0 support.

For example, we use redirect() plugin in your controller:

if the passed $redirect as url is a valid and registered in the routes, it uses default redirect() implementation, otherwise, it will redirect to default default_url registered in config/autoload/redirect-handler-module.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.

While default implementation of redirect to self will silently, you can trigger your listener to handle redirect to self in your Module::onBootstrap($e):

Installation

Require via composer

After composer require done, you can copy vendor/samsonasik/redirect-handler-module/config/redirect-handler-module.local.php.dist to config/autoload/redirect-handler-module.local.php and modify on your needs.

Last, register to config/application.config.php:

Contributing

Contributions are very welcome. Please read CONTRIBUTING.md

Credit


All versions of redirect-handler-module with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
laminas/laminas-mvc Version ^3.0
laminas/laminas-servicemanager Version ^3.3.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 samsonasik/redirect-handler-module contains the following files

Loading the files please wait ....