This class can be used to calculate the time of Muslim prayer time according to the geographic location.
It takes the date of the year and the geographic coordinates of a location and returns an array with the local time on which the each the obligatory prayers should occur: Fajr, Zuhr, Asr, Maghrib and Isha .
This is a class based on the original work written by Mohamad Magdy.
Calculate the sunrise and sunset time of any place
This class contains methods for calculating the sunrise and sunset for any day, for any zenith (angle at which the sun is said to rise or set) and any place in the world given its latitude and longitude coordinates.
Please note that the algorithm used for the calculations are not mine. The algorithm was taken from http://williams.best.vwh.net/sunrise_sunset_algorithm.htm (without permission). There are many algorithms for calculating sunrise/sunset, but this was the simplest and explained in an easy to understand manner.
Cities of the world is not a simple PHP class, but somewhat a handy package that can simplify the task of dealing with lists of countries, and their respective cities (states for the USA - stations for Antarctica) while creating Web forms.
Get geographical details of an IP with IP2Location
This class can get geographical details of an IP with IP2Location.
It can read and parse an IP2Location data file made available in the IP2Location site, so it can locate a given IP address and get geographical details associated to the IP address range.
Currently it can extract details like the country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection speed, IDD code, area code, weather station code, weather station name, mcc, mnc, mobile brand, and elevation.
Given an IP or a Hostname, it returns information about the country, latitude and longitude of the geographic location of the host on the world. It also shows a map image marking the location. This map can ve viewed perfectly even if your server doesn't have GD.