Download the PHP package menatwork/geolocationredirect without Composer

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

Geolocation Redirect - English

geolocationRedirect matches an url pattern and redirects to internal or external pages after setting the configured contry information (geolocation). Regular expressions can be used for URL splitting and their results for the redirects.

Settings

System => Settings => Kill Query-String

All GET parameters of the URL in form of "?key=value" will be removed with this option.

Redirect definitions

You can choose between two types of redirects. The redirect type can be chosen under "target type".

The first option redirects to an internal page, which can be selected with a pagepicker. The second option is for redirecting to external URL or using placeholders.

Example configuration

Target

Setting Value
URL be-(.*)
Regexp true

Redirect settings

Setting Value
Redirect Url $1
Countries be

Result

URL Redirect target Country
(set with geoprotection)
/be-nl/start.html /nl/start.html be
/be-de/start.html /de/start.html be
/be-en/start.html /en/start.html be

Geolocation Redirect - Deutsch

geolocationRedirect wertet URL-Muster aus und leitet auf interne oder externe Seiten weiter und setzt dabei die eingestellten Länderinformationen (Geolocation). Reguläre Ausdrücke können für die URL-Auswertung und die Redirects verwendet werden.

Einstellungen

System => Einstellungen => Kill Query-String

Mit dieser Einstellungen werden alle GET Parameter, die mit "?key=value" an der Url angehängt werden, entfernt.

Definition der Weiterleitungen

Es gibt zwei Arten der Weiterleitungen. Diese können unter Targettyp ausgewählt werden.

Die erste erlaubt es direkt eine Seite auszuwählen. Die zweite Option hingegen erlaubt es externe Seiten aufzurufen, bzw. mit Platzhaltern zu arbeiten.

Beispielkonfiguration

Ziel

Einstellung Wert
URL be-(.*)
Regexp true

Weiterleitungseinstellungen

Einstellung Wert
Weiterleitungs-URL $1
Land be

Ergebnis

URL Weiterleitungsziel Land
(Durch geoprotection konfiguriert)
/be-nl/start.html /nl/start.html be
/be-de/start.html /de/start.html be
/be-en/start.html /en/start.html be

All versions of geolocationredirect with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
contao/core Version >=2.11,<4
contao-community-alliance/composer-installer Version *
menatwork/geolocation Version 1.*
menatwork/geoprotection Version 1.*
bit3/contao-domainlink Version 1.5.*
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 menatwork/geolocationredirect contains the following files

Loading the files please wait ....