jetfueltw/lhczodiacwuxing-php

Mark Six each year zodiac and wuxing numbers

v1.0.0 2019-12-18 09:08 UTC

This package is auto-updated.

Last update: 2024-04-18 19:10:22 UTC


README

六合彩每年的生肖、五行號碼,支援時間從 20172036 年。

Installation

composer require jetfueltw/lhczodiacwuxing-php
use Jetfuel\LhcZodiacWuxing\Zodiac;
use Jetfuel\LhcZodiacWuxing\Wuxing;

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',
//     ...
// ]