davispeixoto/maxmind-db-reader

Laravel 4 MaxMind DB Reader port
23 1
Install
composer require davispeixoto/maxmind-db-reader
Latest Version:1.0.0
PHP:>=5.3.0
License:MIT
Last Updated:Feb 28, 2014
Links: GitHub  ·  Packagist
Maintainer: davispeixoto

Laravel 4 MaxMind DB Reader

This Laravel 4 package provides a simple interface for MaxMind DB Reader.

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require davispeixoto/maxmind-db-reader.

"require": {
	"laravel/framework": "4.1.*",
	"davispeixoto/maxmind-db-reader": "dev-master"
},
"minimum-stability" : "dev"

Next, update Composer from the Terminal:

composer update

Once this operation completes, still in Terminal run:

php artisan config:publish davispeixoto/maxmind-db-reader

Update the settings in the generated app/config/packages/davispeixoto/maxmind-db-reader configuration file with the location of your maxmind db file.

Finally add the service provider. Open app/config/app.php, and add a new item to the providers array.

'Davispeixoto\MaxmindDbReader\MaxmindDbReaderServiceProvider'

That's it! You're all set to go. Just use:

Route::get('/test', function() {
	echo print_r(MaxmindDbReader::get($_SERVER['REMOTE_ADDR']) , true);
});

License

This MaxMind DB Reader port is open-sourced software licensed under the MIT license

Versioning

This projetct follows the Semantic Versioning

Related Packages

littio/laravel-geoip2

Laravel wrapper for MaxMind GeoIP2

35 0
nnjeim/world

Laravel countries, states, cities, currencies, languages and IP geolocation

516,243 984
pixxet/laravel-geoip-world-cities

Laravel GeoIP World Cities provides MaxMind Free World Cities Database for larav...

145 0
weiler/geoip

Support for multiple GeoIP services.

27 0
riteshptl21/geoip

Supports Maxmind GeoIP services

14 0