2017 © Pedro Peláez
 

library laravel-ip-service

A Laravel package to get the client's country using the ip. A wrapper for http://ip2nation.com

image

dimsav/laravel-ip-service

A Laravel package to get the client's country using the ip. A wrapper for http://ip2nation.com

  • Monday, December 29, 2014
  • by dimsav
  • Repository
  • 6 Watchers
  • 104 Stars
  • 36 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel IP Service

Tries to guess the country code of the client, using his IP., (*1)

Installation

Download and import the ip database from ip2nation.com, (*2)

Usage

$service = App::make('Dimsav\IpService\IpService');


// country code for the given ip address

echo $service->getCountryCodeFromIp('123.123.123.123');


// country code for the client's ip address

echo $service->getCountryCodeFromClientIp(); 

The Versions

29/12 2014

dev-master

9999999-dev

A Laravel package to get the client's country using the ip. A wrapper for http://ip2nation.com

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel ip country nation

29/12 2014

v0.1

0.1.0.0

A Laravel package to get the client's country using the ip. A wrapper for http://ip2nation.com

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel ip country nation

29/12 2014

v1

1.0.0.0

A Laravel package to get the client's country using the ip. A wrapper for http://ip2nation.com

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel ip country nation