This is a simple Helper class for CakePHP that determines what is the zodiacal sign that corresponds to a given date or datetime string.
Releases:
Requirements:
Licese:
Download:
Installation:
Example Usage:
In your view, just call the ZodiacSignHelper::name(). The passed argument must be a valid date or datetime string. And you will get a Sun zodiac sign such as Virgo, Leo and Sagittarius:
echo $zodiacSign->name($data['User']['birthday']);
You can also get a Chinese zodiac sign by setting the second parameter to 'Chinese'. The Chinese Zodiac consists of a 12-year cycle, each year of which is named after a different animal that imparts distinct characteristics of its year. For example, the year 2009 is the Year of the Ox:
echo $zodiacSign->name($data['User']['birthday'], 'Chinese');
