tbublikova / otus-ch-zodiac
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tbublikova/otus-ch-zodiac
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