tbublikova / otus-ch-zodiac
There is no license information available for the latest version (1.5.0) of this package.
1.5.0
2024-06-24 08:49 UTC
Requires
- php: >=7.4
README
A package to determine the Chinese zodiac sign for a given year.
Requirements
- PHP 7.4 or higher
Installation
You can install the package via Composer:
composer require your-vendor-name/chinese-zodiac
USAGE
<?php require 'vendor/autoload.php'; use YourVendorName\ChineseZodiac\ChineseZodiac; // Create an instance of the ChineseZodiac class $zodiac = new ChineseZodiac(); // Get the zodiac sign for a specific year echo $zodiac->getZodiac(2024); // Output: Dragon