Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/Geoplugin.md

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andre Roque Filipe  >  PHP Short URL Class  >  examples/Geoplugin.md  >  Download  
File: examples/Geoplugin.md
Role: Documentation
Content type: text/plain
Description: Documentation
Class: PHP Short URL Class
Shorten URLs using different Web services APIs
Author: By
Last change:
Date: 7 months ago
Size: 422 bytes
 

Contents

Class file image Download
#Geoplugin

Simple example on How to use the APIcaller to call an API

API used: http://www.geoplugin.com/

##How to use this class:
```php
//Initializing the caller
$geo = new MASNathan\Geoplugin\Geoplugin();

//Getting IP info
$geo->getLocation('173.194.41.223');
$geo->getLocation('173.194.41.223', 'EUR', true);
$geo->getLocation('173.194.41.223', 'USD', true);

//Get the last call to the API
$geo->getLastCall();
```