Download the PHP package freshmindpl/geolite2-city without Composer
On this page you can find all versions of the php package freshmindpl/geolite2-city. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download freshmindpl/geolite2-city
More information about freshmindpl/geolite2-city
Files in freshmindpl/geolite2-city
Package geolite2-city
Short Description Composer-packaged version of the free MaxMind GeoLite2 City database.
License MIT
Informations about the package geolite2-city
Bright Nucleus GeoLite2 City Database
This is a Composer plugin that provides an automated binary version of the free MaxMind GeoLite2 City database.
The main advantage is that the downloaded database will be checked for updates on each composer install
and composer update
.
Table Of Contents
- Attribution
- Installation
- Basic Usage
- Example
- Contributing
- License
Attribution
This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.
Installation
The only thing you need to do to make this work is adding this package as a dependency to your project:
Basic Usage
On each composer install
or composer update
, a check will be made to see whether there's a new version of the database available. If there is, that new version is downloaded.
To retrieve the path to the binary database file from within your project, you can use the Database::getLocation()
method:
You can pass this location on to the GeoIp2\Database\Reader
class that is provided with the geoip2/geoip2
Composer package.
Example
The following example assumes that you have added the geoip2/geoip2
Composer package as a dependency to your project, so that it is available to the autoloader.
Contributing
All feedback / bug reports / pull requests are welcome.
License
This code is released under the MIT license.
For the full copyright and license information, please view the LICENSE
file distributed with this source code.
All versions of geolite2-city with dependencies
composer-plugin-api Version ^1