MoonPhase takes a given day, month and year and determines the phase of the Moon for that day. It can also compute the distance of the Moon to the Earth. HTML code used to display a picture representing the computed Moon phase, can also be generated. Requirements: PHP 5.0 or higher
Calculates the phase of the moon, current, week at a glance, or a specific date. Could be useful for displaying a corresponding image of the moon on a dynamic website.