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

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

bugcat/lunar
============

Lunar Calendar 农历 阴历 夏历 旧历 太阴历

v0.0.1(6y ago)015MITPHP

Since Jul 24Pushed 6y agoCompare

[ Source](https://github.com/bugcat/lunar)[ Packagist](https://packagist.org/packages/bugcat/lunar)[ RSS](/packages/bugcat-lunar/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (0)

lunar
=====

[](#lunar)

Lunar Calendar 农历 阴历 夏历 旧历 太阴历

格式支持
----

[](#格式支持)

參考PHP手冊中date函數的格式支持 盡可能保持同樣或類似的意思

### 已經支持的格式

[](#已經支持的格式)

format字符說明返回值例子年------Y紀元簡化年二七六二四九九(省略萬以上的年份)o紀元完整年二七六二四九九月------L是否爲潤月如果是潤月爲1，否則爲0M數字月份正，八，臘t指定月份有幾天二十九，三十日------D數字日初三，十六，廿九j月份中的第幾天七，十五，二十三时间------H數字時辰一h干支時辰丑，辰Q刻鍾零，五### 待支持的格式

[](#待支持的格式)

format字符說明返回值例子年------E紀元中蕐紀元y干支年己亥Z生肖年豬月------m干支月辛未F生肖月羊旬------X稱呼旬上，中，下x數字旬一，二，三S每旬第幾天六，十日------d干支日壬戌z年份中的第幾天一百二十七l生肖日狗时间------A生肖時猴B更三，非更時則爲空G時辰別稱日出，雞鳴

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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 ~188 days

Total

2

Last Release

2299d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[koala-framework/composer-extra-assets

Composer Plugin for installing Assets using native npm/bower

42118.7k11](/packages/koala-framework-composer-extra-assets)[nathancox/codeeditorfield

A field for editing code and JSON in the SilverStripe CMS using Ace Editor (http://ace.c9.io/)

2548.5k5](/packages/nathancox-codeeditorfield)[tanthammar/filament-extras

Filament macros, pages, fields, columns and other helpers

524.8k](/packages/tanthammar-filament-extras)[friendsoftypo3/widgets

Dashboard Widgets Collection

1129.4k](/packages/friendsoftypo3-widgets)

PHPackages © 2026

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