tbublikova/otus-ch-zodiac

该包最新版本(1.5.0)没有可用的许可证信息。

1.5.0 2024-06-24 08:49 UTC

This package is auto-updated.

Last update: 2024-09-24 09:25:44 UTC


README

一个用于确定给定年份的生肖的包。

要求

  • PHP 7.4 或更高版本

安装

您可以通过Composer安装此包

composer require your-vendor-name/chinese-zodiac

用法

<?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