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

The Certification of Competence for Laravel logo

The Certification of Competence for Laravel

A community-driven, proctored assessment across 4 levels designed to validate real-world Laravel knowledge, from Junior to mastery-level Artisan. Official Vue.js, Official Nuxt, Angular, React, JS certifications also available.

The Certification of Competence for Laravel
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
Blastup logo

Blastup

Blastup provides social media enhancement services including buying Instagram likes, followers, and views, with features like instant delivery and a variety of packages to suit different needs.

Blastup
Securing Laravel logo

Securing Laravel

The essential security resource for Laravel devs, covering everything you need to keep your apps secure. Sign up to receive weekly security tips and monthly in depth articles, diving deep into security concepts you need to know!

Securing Laravel
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell