2017 © Pedro PelĆ”ez
 

library ipcountry

Nome do paĆ­s pelo IP

image

fernandopetry/ipcountry

Nome do paĆ­s pelo IP

  • Monday, July 3, 2017
  • by fernandopetry
  • Repository
  • 1 Watchers
  • 0 Stars
  • 565 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 23 % Grown

The README.md

PaĆ­s pelo IP

require_once './vendor/autoload.php';

use \Petry\IpCountry\CountryShow;

// Informando o IP
$country = CountryShow::getCountryByIp('200.147.67.142');

// Detectando o IP
$country = CountryShow::getCountryByIp();

// Metodos
$country->getLocale();
$country->getLocale_();
$country->getExtension();
$country->getCountry();
$country->getAcronym2();
$country->getAcronym3();
$country->getIbge();
$country->getFlag();

// RESULTADO:
/*
object(Petry\IpCountry\Country)[1]
  private 'locale' => string 'pt-BR' (length=5)
  private 'locale_' => string 'pt_BR' (length=5)
  private 'extension' => string '.br' (length=3)
  private 'country' => string 'Brasil' (length=6)
  private 'acronym2' => string 'BR' (length=2)
  private 'acronym3' => string 'BRA' (length=3)
  private 'ibge' => int 76
  private 'flag' => null
*/

The Versions

03/07 2017

dev-master

9999999-dev

Nome do paĆ­s pelo IP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

The Development Requires

php

03/07 2017

1.0.3

1.0.3.0

Nome do paĆ­s pelo IP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

The Development Requires

php

03/07 2017

1.0.2

1.0.2.0

Nome do paĆ­s pelo IP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

php

30/06 2017

1.0.1

1.0.1.0

Nome do paĆ­s pelo IP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6

 

php

28/06 2017

1.0.0

1.0.0.0

Nome do paĆ­s pelo IP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6

 

php