Git Product home page Git Product logo

geoip2-update's Introduction

geoip2-update

Geoip2 Update

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

Latest Stable Version GitHub downloads

INSTALLATION

 composer require danielsreichenbach/geoip2-update

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 -> GeoIP2 Update Documentation

FEATURES

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

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

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

COPYRIGHT AND LICENSE

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

This is free software, licensed under the MIT License.

geoip2-update's People

Contributors

danielsreichenbach avatar tronovav avatar

Stargazers

Dan Gaidula avatar  avatar Nick Sdk avatar Chris Nwachukwu avatar Michael Wheater avatar Thomas Jakobi avatar  avatar

Watchers

 avatar

Forkers

germalaz tomolimo

geoip2-update's Issues

You must specify your Maxmind "account_id"

composer:
danielsreichenbach\GeoIP2Update\ComposerClient::run
GeoIP2 database update errors:

  • You must specify your Maxmind "account_id".

fix Client.php - LINE 109 Code
if (preg_match('/^\s*(?PLicenseKey|EditionIDs) ...
change
if (preg_match('/^\s*(?PAccountID|LicenseKey|EditionIDs) ...

fix Client.php - LINE 117 Code
$this->account_id = !empty($confParams['AccountId']) ? $confParams['AccountId'] ...
change
$this->account_id = !empty($confParams['AccountID']) ? $confParams['AccountID']

The remote server is not available

I get an error when using your library: The remote server is not available.
My PHP version is 8.0, can you help me solve it? Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.