Skip to content

An API in PHP to get the location and some other details related to the location.

Notifications You must be signed in to change notification settings

VishnuSivadasVS/Location-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Location-API

Vishnu Sivadas

An API in PHP to get the location and some other details related to the location.

How to use?

First of all download the file LocationDetails.php and place it in your project folder. Now add the file LocationDetails.php to your project file by requiring it.

require "LocationDetails.php";

Simply create an object for the class LocationDetails.

$ob = new LocationDetails();

Call the getLocationDetails() and it will return a json arry with details on current location.

$ob->getLocationDetails();

You could modify the code and also pass the ip address as argument to the function.

You could also get user IP by calling getUserIP().

$ob->getUserIP();

Feel free to report any issues related to this.

Authors

  • Vishnu Sivadas - Developer - Website

Check out my other works @VishnuSivadasVS

About

An API in PHP to get the location and some other details related to the location.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages