You are viewing the documentation for Intervention Zodiac 3, this version has reached end of life (EOL). Please consider upgrading to version 5.

Intervention Zodiac is a calculator for zodiac signs to resolve the respective zodiac sign from various data types.

Code Example

use Intervention\Zodiac\Calculator;
use DateTime;
use Carbon\Carbon;

// get zodiac object from a date
$zodiac = Calculator::make('1980-09-15'); // virgo

// method takes mixed formats
$zodiac = Calculator::make('first day of June 2008'); // gemini

// even DateTime objects
$zodiac = Calculator::make(new DateTime('1977-03-15')); // pisces

// get zodiac from a Carbon
$zodiac = Calculator::make(Carbon::yesterday());

Read how to install the package.

Edit