PHP Classes

MoonPhase: Determine the Moon phase on a given date

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 793 All time: 4,309 This week: 57Up
Version License PHP version Categories
moon_phase 1.0GNU General Publi...5.0PHP 5, Time and Date, Physics
Description 

Author

This class can be used to determine the Moon phase on a given date.

It 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.

The class can also generate HTML to display a picture that represents the computed Moon phase.

Picture of Hamed Afshar
  Performance   Level  
Innovation award
Innovation award
Nominee: 1x

 

  Files folder image Files (32)  
File Role Description
Files folder imageimages_moon (30 files)
Accessible without login Plain text file index.php Example Example usage
Plain text file moonphase.php Class Source of the class

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 Unique User Downloads Download Rankings  
 0%
Total:793
This week:0
All time:4,309
This week:57Up
 User Ratings  
 
 All time
Utility:87%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1213