---
application: "Intervention Zodiac"
version: "Version 4"
status: "eol"
---

# Intervention Zodiac

## PHP Zodiac Sign Calculator



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

### Code Example

```php
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](https://zodiac.intervention.io/v3/introduction/installation.md).

---

## Become a Sponsor

### Intervention Zodiac needs your help to keep the project going

Intervention Zodiac is non-commercial, open source licensed and completely free to use. The considerable
effort required to maintain and develop the software is only possible with the financial support
of sponsors. There are two ways in which you can support this project.

- Support via [GitHub Sponsors](https://github.com/sponsors/Intervention)
- Support via [Ko-Fi](https://ko-fi.com/interventionphp)