PHP Classes

Very Simple IP Details: Get IP address location and Google Maps image

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 64%Total: 477 All time: 5,969 This week: 140Up
Version License PHP version Categories
vsid 1.0.1Public Domain5Networking, PHP 5, Web services, Geog...
Description 

Author

This class can get IP address location and Google Maps image.

It can send a HTTP request to the IPInfo.io API to get the geographic location details of a given IP address. Currently it can obtain IP address country code, region, city, postal code, latitude, longitude, hostname and organization.

The class can also return HTML to embed a static image from Google Maps showing the geographic location of the IP address.

Picture of zinsou A.A.E.Moïse
  Performance   Level  
Name: zinsou A.A.E.Moïse <contact>
Classes: 50 packages by
Country: Benin Benin
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

Recommendations

What is the best PHP mobile location finder class?
Find mobile user location

What is the best PHP geolocation class?
Find city and country name by IP

Google Map script with PHP
Google Map script with PHP

User location using an API
Search user location with an API

Detect user's location at the street level
Web site user's location

What is the best PHP localization visitor country class?
Localization visitor country with PHP

What is the best PHP visitor location class?
Find a visitor IP address longitude and latitude

What is the best PHP ip to latitude longitude class?
Given IP address return latitude longitude

Value of latitude and longitude
Value of latitude and longitude than can help me to

Example

<?php
include("class.ipdetails.php");
$ip="66.84.41.158";
$myip=new vsipdetails($ip);
echo
'<pre>';
print_r ($myip->scan());
echo
$myip->get_map();
$myip->close();

?>


  Files folder image Files (5)  
File Role Description
Plain text file class.ipdetails.php Class source class
Plain text file class.ipdetailsold Class class source
Accessible without login Plain text file example.php Example example script
Accessible without login Plain text file example_newV.php Example example script for new version
Accessible without login Plain text file ipcache.sql Data Sql table

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Reuses Unique User Downloads Download Rankings  
 0%1
Total:477
This week:0
All time:5,969
This week:140Up
User Ratings User Comments (1)
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:64%StarStarStarStar
Rank:682
 
Very good, I have simular class.
7 years ago (Velimir Majstorov)
55%StarStarStar