PHPackages                             danielsreichenbach/geoip2-update - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. danielsreichenbach/geoip2-update

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

danielsreichenbach/geoip2-update
================================

Update GeoIP2/GeoLite2 databases from your script, program or via composer.

v2.5.1(1y ago)7144.4k—1.4%4[2 issues](https://github.com/danielsreichenbach/geoip2-update/issues)[2 PRs](https://github.com/danielsreichenbach/geoip2-update/pulls)MITPHPPHP ^7.2.5 || ^8.0

Since May 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/danielsreichenbach/geoip2-update)[ Packagist](https://packagist.org/packages/danielsreichenbach/geoip2-update)[ RSS](/packages/danielsreichenbach-geoip2-update/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (5)Dependencies (3)Versions (7)Used By (0)

geoip2-update
=============

[](#geoip2-update)

[![Geoip2 Update](https://user-images.githubusercontent.com/25905384/111375423-4631ce00-86af-11eb-81a9-2bc4dab89068.png)](https://www.geodbase-update.com/?utm_source=github&utm_medium=organic&utm_campaign=github_project_page&utm_content=main_banner)

Geoip2 Update is a PHP tool for updating Maxmind GeoLite2 and GeoIP2 databases from your script, application or via Composer.

[![Latest Stable Version](https://camo.githubusercontent.com/26a98e23e1e1c11fda92bb8a519f522c073793cd95b756b9f52eb40dbcb707bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64616e69656c737265696368656e626163682f67656f6970322d757064617465)](https://packagist.org/packages/danielsreichenbach/geoip2-update)[![GitHub downloads](https://camo.githubusercontent.com/d9860dbafec9f77a7c63c2107f8e350b320084b2ecbbb097ff868b8ca8b91939/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64616e69656c737265696368656e626163682f67656f6970322d757064617465)](https://packagist.org/packages/danielsreichenbach/geoip2-update)

INSTALLATION
------------

[](#installation)

```
 composer require danielsreichenbach/geoip2-update
```

DOCUMENTATION
-------------

[](#documentation)

You can read the documentation on setting up and using the library, as well as learn about new features on the official website.

**Go to documentation -&gt; [GeoIP2 Update Documentation](https://www.geodbase-update.com/?utm_source=github&utm_medium=organic&utm_campaign=github_project_page&utm_content=documentation_link)**

FEATURES
--------

[](#features)

### 1. Updating GeoIP2 databases via Composer

[](#1-updating-geoip2-databases-via-composer)

To update Geoip2 databases via Composer, you can set up an update call in your `composer.json`.

Each time the `composer update` command is invoked, the library will check for updates on the "maxmind.com" server and update the Geoip2 databases if necessary.

You can also update only `GeoIP2` databases without updating all project dependencies: `composer update danielsreichenbach/geoip2-update`.

### 2. Updating GeoIP2 databases from your PHP application

[](#2-updating-geoip2-databases-from-your-php-application)

You can use this option to update `GeoIP2` databases from your PHP project, or use `cron` on Linux, or use `Task Scheduler` on Windows.

### 3. Simple, cross-platform and reliable

[](#3-simple-cross-platform-and-reliable)

Does not depend on the operating system and can be used on hosting services and production servers.

COPYRIGHT AND LICENSE
---------------------

[](#copyright-and-license)

This software is Copyright (c) 2021 by Andrey Tronov.

This is free software, licensed under the MIT License.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance43

Moderate activity, may be stable

Popularity40

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~84 days

Recently: every ~106 days

Total

6

Last Release

371d ago

Major Versions

v2.5.1 → v3.x-dev2025-06-30

PHP version history (3 changes)v2.4.0PHP &gt;=8.0

v2.5.0PHP ^7.2.5 || ^8.0

v3.x-devPHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/daa2c0a5a12b98d55c8d13c7772e86c2583244969aab6ebe45b43e24cc1b8430?d=identicon)[danielsreichenbach](/maintainers/danielsreichenbach)

---

Top Contributors

[![danielsreichenbach](https://avatars.githubusercontent.com/u/294217?v=4)](https://github.com/danielsreichenbach "danielsreichenbach (9 commits)")[![tronovav](https://avatars.githubusercontent.com/u/25905384?v=4)](https://github.com/tronovav "tronovav (2 commits)")[![tomolimo](https://avatars.githubusercontent.com/u/7569958?v=4)](https://github.com/tomolimo "tomolimo (1 commits)")

---

Tags

geoipgeolocationmaxmindgeoip2geolite2

### Embed Badge

![Health badge](/badges/danielsreichenbach-geoip2-update/health.svg)

```
[![Health](https://phpackages.com/badges/danielsreichenbach-geoip2-update/health.svg)](https://phpackages.com/packages/danielsreichenbach-geoip2-update)
```

###  Alternatives

[geoip2/geoip2

MaxMind GeoIP PHP API

2.5k92.0M368](/packages/geoip2-geoip2)[maxmind-db/reader

MaxMind DB Reader API

700107.4M59](/packages/maxmind-db-reader)[tronovav/geoip2-update

Update GeoIP2/GeoLite2 databases from your script, program or via composer.

50345.2k1](/packages/tronovav-geoip2-update)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
