Skip to content

w87/geoip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the legacy (v1) GeoIP PHP extension for PHP 7.x and PHP 8.x.

Unless you have old code that needs this, you might be better off using GeoIP2.

Installing:

Example for Debian (apt) and PHP 8.2

apt install php8.2-dev geoip-bin geoip-database libgeoip-dev
git clone https://github.com/rlerdorf/geoip.git geoip && cd geoip
phpize8.2
./configure 
make
make test
make install

To use it:

  1. Add line extension=geoip.so to your (PHP 8.2) php.ini
  2. Restart your webserver e.g. service apache2 restart
  3. If using FPM: service php8.2-fpm restart

About

🐘 PHP GeoIP extension for PHP 8.x and PHP 7.x

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C 67.8%
  • PHP 23.1%
  • M4 7.9%
  • JavaScript 1.2%