2017 © Pedro Peláez
 

library silex-geoip-provider

Geoip bundle for Silex2

image

exs/silex-geoip-provider

Geoip bundle for Silex2

  • Monday, November 14, 2016
  • by rumpranger
  • Repository
  • 6 Watchers
  • 1 Stars
  • 603 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Silex 2.x Geoip Provider

Installing the GeoipProvider in a Silex project

The installation process is actually very simple. Set up a Silex project with Composer., (*1)

Once the new project is set up, open the composer.json file and add the exs/silex-geoip-provider as a dependency: ``` js //composer.json //... "require": { //other bundles "exs/silex-geoip-provider": "^v1.0", (*2)


Save the file and have composer update the project via the command line: ``` shell php composer.phar update

or run this command: ``` shell composer require exs/silex-geoip-provider v1.0, (*3)


Composer will now update all dependencies and you should see our bundle in the list: ``` shell - Installing exs/silex-geoip-provider (dev-master 463eb20) Cloning 463eb2081e7205e7556f6f65224c6ba9631e070a

Update the app.php to include our provider: ``` php //app.php //... $app->register(new \EXS\GeoipProvider\Providers\GeoipProvider(),array('maxmind.database.file'=>'/path/to/your/file/GeoIPCity.dat'));, (*4)

$service = $app['exs.serv.geoip']; $country_code = $service->getGeoipCountryCode('8.8.8.8'); //or $country = $service->getCountryByReader('8.8.8.8); ``` and now you're done., (*5)

Contributing

Anyone and everyone is welcome to contribute., (*6)

If you have any questions or suggestions please [let us know][1]., (*7)

The Versions

14/11 2016

dev-master

9999999-dev https://github.com/ExSituMarketing/EXS-silex-geoip-provider

Geoip bundle for Silex2

  Sources   Download

MIT

The Requires

 

geoip silex maxmind provider

14/11 2016

v1.0.1

1.0.1.0 https://github.com/ExSituMarketing/EXS-silex-geoip-provider

Geoip bundle for Silex2

  Sources   Download

MIT

The Requires

 

geoip silex maxmind provider

22/05 2015

v1.0

1.0.0.0 https://github.com/ExSituMarketing/EXS-silex-geoip-provider

Geoip bundle for Silex2

  Sources   Download

MIT

The Requires

 

geoip silex maxmind provider