2017 © Pedro Peláez
 

library zodiac

Zodiac sign calculator

image

intervention/zodiac

Zodiac sign calculator

  • Thursday, November 30, 2017
  • by olivervogel
  • Repository
  • 2 Watchers
  • 13 Stars
  • 5,005 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 8 Versions
  • 24 % Grown

The README.md

Intervention Zodiac

Latest Version Tests Monthly Downloads Support me on Ko-fi, (*1)

Intervention Zodiac is a calculator for zodiac signs to resolve the respective zodiac sign from various data types., (*2)

Installation

You can install this package with Composer., (*3)

Require the package via Composer:, (*4)

$ 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., (*5)

Documentation

Read the full documentation for this library., (*6)

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., (*7)

You can run all tests with the following command., (*8)

docker-compose run --rm --build tests

Run the static analyzer on the code base., (*9)

docker-compose run --rm --build analysis

Authors

This library is developed and maintained by Oliver Vogel, (*10)

Thanks to the community of contributors who have helped to improve this project., (*11)

License

Intervention Zodiac is licensed under the MIT License., (*12)

The Versions

30/11 2017

dev-master

9999999-dev

Zodiac sign calculator

  Sources   Download

MIT

The Requires

 

The Development Requires

zodiac

20/07 2017

1.1.0

1.1.0.0

Zodiac sign calculator

  Sources   Download

MIT

The Requires

 

The Development Requires

zodiac

28/06 2017

1.0.3

1.0.3.0

Zodiac sign calculator

  Sources   Download

MIT

The Requires

 

The Development Requires

zodiac

24/05 2017

1.0.2

1.0.2.0

Zodiac sign calculator

  Sources   Download

MIT

The Requires

 

The Development Requires

zodiac

29/01 2017

1.0.1

1.0.1.0

Zodiac sign calculator

  Sources   Download

MIT

The Requires

 

The Development Requires

zodiac

31/03 2016

1.0.0

1.0.0.0

Zodiac sign calculator

  Sources   Download

MIT

The Requires

 

The Development Requires

zodiac

03/01 2016

1.0.0-beta

1.0.0.0-beta

Zodiac sign calculator

  Sources   Download

MIT

The Requires

 

The Development Requires

zodiac

02/01 2016

0.5.0

0.5.0.0

Zodiac sign calculator

  Sources   Download

MIT

The Requires

 

The Development Requires

zodiac