Download the PHP package andersundsehr/geo_redirect without Composer

On this page you can find all versions of the php package andersundsehr/geo_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 geo_redirect

geo_redirect 🌍➡️

This extension redirect users based on browser language and ip country to the right language version of the website.

Installation

Go to the TYPO3 Extension Settings and configure as you need.

!!! If you want to use the ip to Country detection with the mmdb file you should add your maxmindLicenseKey (see Extension Settings).
Get your key here: https://dev.maxmind.com/geoip/geolite2-free-geolocation-data

Features

How it works

This extension uses the user's Accept-Language header and the country derived from the IP address to find the correct language version of the site.
For IP to Country there are mutliple Implementatinos.
If you use Cloudflare or Sucuri, the extension will use the header that is set by the service.
If you set a maxmindLicenseKey in the extension settings, the extension will use the mmdb file from maxmind.com.
Otherwise it will ignore the request origin country. And just use the Accept-Language header.

Options

mmdb file

The mmdb file is downloaded from maxmind.com and is updated every 5 weeks automatically.
If you always want the best performance for your users,
you should add the typo3 geo-redirect:update-up-database command to run every month (4 weeks).

Debugging

If you request the domain with this path: /geo_redirect/debug you will be given a detailed explenation what language was detected.

sys_redirect based on siteLanguage

This feature makes it possible to redirect the user to a specific page based on the siteLanguage.
You don't need to configure anything, for this to work.
All sys_redirect records that use a t3://page?uid= link are automatically redirected to the right language version of the page.
(if no _language= is defined in the redirect)

Extending functionality

PHP Api

get the ip country for the current request: ``

get the detected language: ``

custom redirect definition

if you want a different redirect definition, you can use the \AUS\GeoRedirect\Dto\BeforeSiteLanguageFinderEvent to get all relevant Information and set the siteLanguage and redirectUrl yourself.

add custom IpCountryLocator

If you want to add a custom IpCountryLocator, you can do so by adding a class that implements the IpCountryLocatorInterface and add it via the CollectIpCountryLocatorEvent.

with ♥️ from anders und sehr GmbH

If something did not work 😮
or you appreciate this Extension 🥰 let us know.

We are hiring https://www.andersundsehr.com/karriere/


All versions of geo_redirect with dependencies

PHP Build Version
Package Version
Requires php Version ~8.2.0 || ~8.3.0
ext-json Version *
composer-runtime-api Version ^2
codezero/browser-locale Version ^3.3
geoip2/geoip2 Version ^2
typo3/cms-backend Version ^11.5.0 || ^12.4.0
typo3/cms-core Version ^11.5.0 || ^12.4.0
typo3/cms-redirects Version ^11.5.0 || ^12.4.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 andersundsehr/geo_redirect contains the following files

Loading the files please wait ....