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


Geolocation contexts

Allows you to show pages and content elements for people in certain countries, continents or within a given area.

It uses the Maxmind GeoIP database to determine the user's probable physical location. Note that this is working most of the time, but also fails regularly.

Country and Continent rules are pretty safe to use, while small distances are not accurate at all.


Setup

  1. Install the PHP extension geoip (requires root access to the server) If that is not possible, install the Net_GeoIP package from PEAR
  2. Install and activate this TYPO3 extension contexts_geolocation

Dependencies


Context types

The contexts_geolocation extension ships with three different context types:

Continent

Matches when the user is on one of the selected continents.

Continent - unknown - can be used to match all users whose position could not be determined.

Country

Matches when the user accessing the page is in one of the selected countries.

Country - unknown - can be used to match all users whose position could not be determined.

Distance

Select a location on a map and a distance, and the context matches when the user's location is within this area.

Note that the free geoip database does seldom give you exact locations, so this is more a fun experiment rather that it should be used in production.


Plugins

Contexts geolocation: show current position

Shows a map with a marker at the detected position of the user's IP.

Also shows a dump of other data for this IP, like continent, country and city.

Useful for testing and debugging.

Allows manual IP address input.


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 ....