PHPackages                             lunar/huangli - 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. lunar/huangli

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

lunar/huangli
=============

黄历算法

2.0.9(6y ago)041MITPHPPHP &gt;=5.4.0

Since May 8Pushed 6y agoCompare

[ Source](https://github.com/fuqt08/huangli)[ Packagist](https://packagist.org/packages/lunar/huangli)[ RSS](/packages/lunar-huangli/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (6)Used By (0)

黄历和日历
=====

[](#黄历和日历)

黄历和日历

Requirement
-----------

[](#requirement)

- PHP &gt;=5.4

用法
--

[](#用法)

```

     $huangli=Hunagli::date('2019-04-30');
         $res = $huangli->getLunarByBetween();
         $res['gongli'] = $huangli->dateTime->format('Y-m-d');
         $res['week'] = Hunagli::getWeekChs($huangli->dateTime->getTimestamp());
         //24节气
         $res['jieqi'] = $huangli->getJieQi();
         $jieQiList = $huangli->getAllJieQi($huangli->dateTime->format('Y'));
         //方位
         $res['position'] = $huangli->getPosition();
         //八门方位
         $res['bamen'] = $huangli->getBaMenPosition();
         $res['peng_zu'] = $huangli->getPengZuBaiJi();
         //建除十二神
         $res['jianchu'] = $huangli->getJianChu();
         //今日合害
         $res['hehai'] = $huangli->getTodayHeHai();
         //纳音
         $res['na_yin'] = $huangli->getNayin();
         //星宿
         $res['xing_su'] = $huangli->getXingSu();
         //空亡
         $res['kong_wang'] = $huangli->getKongWang();
         //值日
         $res['zhi_ri'] = $huangli->getZhiRi();
         //三煞
         $res['san_sha'] = [
             'y' => $huangli->getSanSha($res['jinian']['y'][1]),
             'm' => $huangli->getSanSha($res['jinian']['m'][1]),
             'd' => $huangli->getSanSha($res['jinian']['d'][1]),
         ];
         //星座
         $res['xing_zuo'] = $huangli->getXingZuo();
         //吉凶宜忌
         $res['yi_ji'] = $huangli->getJiXiong();
         //胎神
         $res['tai_shen'] = $huangli->getTaiShen();
         //时辰详情
         $res['h_detail'] = $huangli->getHourDetail();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Every ~19 days

Total

5

Last Release

2492d ago

### Community

Maintainers

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

---

Top Contributors

[![fuqt08](https://avatars.githubusercontent.com/u/24998626?v=4)](https://github.com/fuqt08 "fuqt08 (16 commits)")

### Embed Badge

![Health badge](/badges/lunar-huangli/health.svg)

```
[![Health](https://phpackages.com/badges/lunar-huangli/health.svg)](https://phpackages.com/packages/lunar-huangli)
```

PHPackages © 2026

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