Polyscope - The agent-first dev environment for Laravel

Zodiac

Zodiac stats

Downloads
146.6K
Stars
44
Open Issues
0
Forks
14

View on GitHub →

Zodiac sign calculator

Intervention Zodiac

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

Installation

You can install this package with Composer.

Require the package via Composer:

$ composer require intervention/zodiac

Although the library is framework agnostic it comes with a service provider for the Laravel Framework. Which will be discovered automatically and registers the calculator into your installation.

Documentation

Read the full documentation for this library.

Code Examples

use Intervention\Zodiac\Calculator;
use DateTime;
use Carbon\Carbon;
 
// get zodiac object from a date
$zodiac = Calculator::zodiac('1980-09-15');
 
// method takes mixed formats
$zodiac = Calculator::zodiac('first day of June 2008');
 
// create from DateTime object
$zodiac = Calculator::zodiac(new DateTime('1977-03-15'));
 
// get zodiac from a Carbon object
$zodiac = Calculator::zodiac(Carbon::yesterday());
 
// get zodiac from unix timestamp
$zodiac = Calculator::zodiac(228268800);
use Intervention\Zodiac\Calculator;
use DateTime;
use Carbon\Carbon;
 
// calculate zodiac sing
$zodiac = Calculator::zodiac('1977-06-17');
 
$name = $zodiac->name(); // 'gemini'
$html = $zodiac->html(); // '♊︎'
$localized = $zodiac->localized('fr'); // Gémeaux
$compatibility = $zodiac->compatibility($zodiac); // .6

Development & Testing

With this package comes a Docker image to build a test suite container. To build this container you have to have Docker installed on your system.

You can run all tests with the following command.

docker-compose run --rm --build tests

Run the static analyzer on the code base.

docker-compose run --rm --build analysis

Authors

This library is developed and maintained by Oliver Vogel

Thanks to the community of contributors who have helped to improve this project.

License

Intervention Zodiac is licensed under the MIT License.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Intervention Zodiac Related Articles

Stargazing in Your Laravel App with Intervention Zodiac image

Stargazing in Your Laravel App with Intervention Zodiac

Read article
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud
Celebian logo

Celebian

Celebian is a social media marketing agency specializing in helping their clients go viral on TikTok. Whether you're looking to reach a bigger audience or gain more Tiktok followers, likes, and views, they've got you covered.

Celebian
Typesense Search logo

Typesense Search

Typesense is an open source, blazing-fast search engine, optimized for helping you build delightful search experiences for your sites and apps. Natively integrated with Laravel Scout.

Typesense Search
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
Statamic logo

Statamic

The drop-in ready Laravel CMS you’re been waiting for. Go full-stack or headless, flat file or database – it’s up to you.

Statamic
DreamzTech logo

DreamzTech

Hire 6-10+ Yrs. experienced skilled Laravel Developers from DreamzTech. We ensure NDA protected, 100% quality delivery. Contact Us & Discuss Your Need.

DreamzTech