Download the PHP package netresearch/contexts_geolocation without Composer

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

Contexts: Geolocation

Latest Stable Version TYPO3 PHP

CI PHPStan OpenSSF Scorecard SLSA 3

Geolocation-based context types for TYPO3. Show pages and content elements for visitors in specific countries, continents, or within a defined geographic area.

Uses MaxMind GeoIP2 for accurate IP-based location detection.

Features

Requirements

Installation

Install via Composer:

Activate the extension:

MaxMind GeoLite2 Database Setup

This extension requires a MaxMind GeoIP2 database for IP geolocation.

1. Create a MaxMind Account

Sign up for a free account at MaxMind GeoLite2 Signup.

2. Download the Database

Download "GeoLite2 City" in MMDB format from your MaxMind account and extract it to a location on your server (e.g., /var/lib/GeoIP/GeoLite2-City.mmdb).

Alternatively, use the geoipupdate tool for automatic updates:

3. Configure the Database Path

Set the environment variable:

Configuration

Environment Variables

Variable Description Default
GEOIP_DATABASE_PATH Path to the GeoIP2 database file (required)
GEOIP_TRUST_PROXY_HEADERS Trust X-Forwarded-For headers false

Proxy Configuration

If your TYPO3 installation is behind a reverse proxy, enable proxy header trust:

Context Types

Continent Context

Matches visitors based on their continent:

Country Context

Matches visitors based on their country using ISO 3166-1 alpha-2 codes (e.g., DE, US, FR, GB).

Distance Context

Matches visitors within a specified radius (in kilometers) from a geographic point defined by latitude and longitude.

Note: Distance-based targeting works best with larger radii (50+ km) due to the inherent limitations of IP-based geolocation accuracy.

Accuracy Considerations

IP-based geolocation has inherent limitations:

Visitors using VPNs, proxies, or mobile networks may be geolocated to different locations than their actual physical position.

Migration from v1.x

Version 2.0 is a complete rewrite with breaking changes:

Documentation

Full documentation is available at docs.typo3.org (once published) or in the Documentation/ folder of this extension.

Contributing

Contributions are welcome! Please submit issues and pull requests on GitHub.

License

This extension is licensed under the AGPL-3.0-or-later.

Credits

Developed and maintained by Netresearch DTT GmbH.


All versions of contexts_geolocation with dependencies

PHP Build Version
Package Version
Requires netresearch/contexts Version ^1.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 netresearch/contexts_geolocation contains the following files

Loading the files please wait ...