PHPackages                             jetfueltw/solarlunar-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/solarlunar-php

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

jetfueltw/solarlunar-php
========================

Chinese solar lunar calendar converter

v1.0.1(6y ago)18.8k2[1 PRs](https://github.com/jetfueltw/solarlunar-php/pulls)Apache-2.0PHPPHP &gt;=7.2

Since Dec 18Pushed 1y ago1 watchersCompare

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

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

solarlunar-php
==============

[](#solarlunar-php)

公曆（阳历）、農曆（阴历）轉換，支援時間從 `1900-01-01` 到 `2099-12-31`。

基於
有更好的 PSR 與 Composer 支持。

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

[](#installation)

```
composer require jetfueltw/solarlunar-php
```

```
use Jetfuel\SolarLunar\SolarLunar;
```

Useage
======

[](#useage)

公曆轉農曆

```
$solar = Solar::create(2015, 1, 15);
$lunar = SolarLunar::solarToLunar($solar);
// Lunar {
//     "year" => 2014,
//     "month" => 11,
//     "day" => 25,
//     "isLeap" => false
// }
```

農曆轉公曆

```
$lunar = Lunar::create(2014, 11, 25, false);
$solar = SolarLunar::lunarToSolar($lunar);
// Solar {
//     "year" => 2015,
//     "month" => 1,
//     "day" => 15
// }
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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

Total

2

Last Release

2389d 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 (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[delight-im/random

The most convenient way to securely generate anything random in PHP

2146.3k](/packages/delight-im-random)

PHPackages © 2026

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