|
|
- #!/usr/bin/env php
- <?php
- require_once dirname(__FILE__) . '/vendor/autoload.php';
-
- $phases = [
- 'New Moon' => '🌑',
- 'Waxing Crescent' => '🌒',
- 'First Quarter' => '🌓',
- 'Waxing Gibbous' => '🌔',
- 'Full Moon' => '🌕',
- 'Waning Gibbous' => '🌖',
- 'Third Quarter' => '🌗',
- 'Waning Crescent' => '🌘',
- ];
-
- $moonphase = new Solaris\MoonPhase;
- print $phases [ $moonphase->phase_name() ];
-
- # print " " . $moonphase->phase_name();
|