b13 / magnets
Magnets: TYPO3 Service Package revolving around having a good API to fetch the current Geo IP and its location of the user.
Installs: 16 706
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 12
Forks: 2
Open Issues: 1
Type:typo3-cms-extension
Requires
- geoip2/geoip2: ^2.8
- typo3/cms-core: ^11.5 || ^12.4
This package is auto-updated.
Last update: 2024-10-01 09:47:40 UTC
README
This extension acts as a thin wrapper for TYPO3 to access GeoIP relevant information.
A symfony CLI Command can be added to download the latest GeoIP2 data.
For download the latest GeoIP2 data you have to provide an licence-key from maxmind
(as .env-Variable or $GLOBALS['TYPO3_CONF_VARS']['SYS']['GeoIPLicenceKey']
)
Installation
Run composer req b13/magnets
and install the extension via Extension Manager.
Usage
Ensure your cronjob / scheduler task is running and use the IpLocation PHP class to have a nice and quick API.
In addition, you have "countryCode" as TypoScript condition available.
[countryCode == 'FR']
page.10 = TEXT
page.10.value = You are from france
[global]
The condition is also available in site configurations.
License
Just as TYPO3 Core, this is an extension for TYPO3 and also licensed under GPL2+.
Made by b13 with ♥
Find more TYPO3 extensions we have developed that help us deliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.