PHPackages                             jetfueltw/lhczodiacwuxing-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jetfueltw/lhczodiacwuxing-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jetfueltw/lhczodiacwuxing-php
=============================

Mark Six each year zodiac and wuxing numbers

v1.0.0(6y ago)0409[1 PRs](https://github.com/jetfueltw/lhczodiacwuxing-php/pulls)Apache-2.0PHPPHP &gt;=7.2CI failing

Since Dec 18Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/jetfueltw/lhczodiacwuxing-php)[ Packagist](https://packagist.org/packages/jetfueltw/lhczodiacwuxing-php)[ RSS](/packages/jetfueltw-lhczodiacwuxing-php/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

lhczodiacwuxing-php
===================

[](#lhczodiacwuxing-php)

六合彩每年的生肖、五行號碼，支援時間從 `2017` 到 `2036` 年。

Installation
============

[](#installation)

```
composer require jetfueltw/lhczodiacwuxing-php
```

```
use Jetfuel\LhcZodiacWuxing\Zodiac;
use Jetfuel\LhcZodiacWuxing\Wuxing;
```

Useage
======

[](#useage)

取得 2020 年的生肖號碼

```
$zodiacNumbers = Zodiac::getZodiacNumbers(2020);
// [
//     'rat'     => [1, 13, 25, 37, 49],
//     'ox'      => [12, 24, 36, 48],
//     'tiger'   => [11, 23, 35, 47],
//     'rabbit'  => [10, 22, 34, 46],
//     'dragon'  => [9, 21, 33, 45],
//     ...
// ]
```

取得 2020 年的號碼生肖

```
$numberZodiacs = Zodiac::getNumberZodiacs(2020);
// [
//     1 => 'rat',
//     2 => 'pig',
//     3 => 'dog',
//     4 => 'rooster',
//     5 => 'monkey',
//     ...
// ]
```

取得 2020 年的生肖

```
$dutyZodiac = Zodiac::getDutyZodiac(2020);
// 'rat'
```

取得 2020 年的五行號碼

```
$wuxingNumbers = Wuxing::getWuxingNumbers(2020);
// [
//     'metal' => [6, 7, 20, 21, 28, 29, 36, 37],
//     'wood'  => [2, 3, 10, 11, 18, 19, 32, 33, 40, 41, 48, 49],
//     'water' => [8, 9, 16, 17, 24, 25, 38, 39, 46, 47],
//     'fire'  => [4, 5, 12, 13, 26, 27, 34, 35, 42, 43],
//     'earth' => [1, 14, 15, 22, 23, 30, 31, 44, 45],
// ]
```

取得 2020 年的號碼五行

```
$numberWuxings = Wuxing::getNumberWuxings(2020);
// [
//     1 => 'earth',
//     2 => 'wood',
//     3 => 'wood',
//     4 => 'fire',
//     5 => 'fire',
//     ...
// ]
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance54

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2338d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa9065d63339291715229f25e9b12f521dfe56ba9062a3601e963a668e15ea52?d=identicon)[jetfueltw](/maintainers/jetfueltw)

---

Top Contributors

[![jungle1900](https://avatars.githubusercontent.com/u/646404?v=4)](https://github.com/jungle1900 "jungle1900 (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jetfueltw-lhczodiacwuxing-php/health.svg)

```
[![Health](https://phpackages.com/badges/jetfueltw-lhczodiacwuxing-php/health.svg)](https://phpackages.com/packages/jetfueltw-lhczodiacwuxing-php)
```

###  Alternatives

[suncat/mobile-detect-bundle

Symfony2/3/4 bundle for detect mobile devices, managing mobile view types, redirect to mobile version.

4035.3M7](/packages/suncat-mobile-detect-bundle)[snowdog/frontools

Set of front-end tools for Magento 2, based on Gulp.js

4241.3M1](/packages/snowdog-frontools)[spatie/laravel-dashboard

A dashboard for Laravel

568156.1k94](/packages/spatie-laravel-dashboard)[brick/schema

Schema.org library for PHP

5163.7k1](/packages/brick-schema)[ibericode/vat-bundle

Bundle for using ibericode/vat in a Symfony environment

21254.5k](/packages/ibericode-vat-bundle)[sylius/taxonomy

Taxonomies - categorization of domain models in PHP projects.

14435.6k10](/packages/sylius-taxonomy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
