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

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

jyil/lunar-php
==============

易经六十四卦排盘类库

v1.6(8y ago)313116WTFPLPHPPHP &gt;=5.4.0

Since Aug 29Pushed 8y ago3 watchersCompare

[ Source](https://github.com/jyiL/lunarPHP)[ Packagist](https://packagist.org/packages/jyil/lunar-php)[ RSS](/packages/jyil-lunar-php/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

lunarPHP
========

[](#lunarphp)

[![Latest Stable Version](https://camo.githubusercontent.com/b56f5a744cc856f3978f073cae1865de14824dc5a1fd4d066feae685deca533f/68747470733a2f2f706f7365722e707567782e6f72672f6a79696c2f6c756e61722d7068702f762f737461626c65)](https://packagist.org/packages/jyil/lunar-php)[![Total Downloads](https://camo.githubusercontent.com/1589888516dea292e950bfac3c1dccdddcfbe39c491a00f49203f368a8495c6e/68747470733a2f2f706f7365722e707567782e6f72672f6a79696c2f6c756e61722d7068702f646f776e6c6f616473)](https://packagist.org/packages/jyil/lunar-php)[![License](https://camo.githubusercontent.com/ffdddc4fed65be9704cdd8cd37787330d5d0d3cba31caeac35f53513d307208c/68747470733a2f2f706f7365722e707567782e6f72672f6a79696c2f6c756e61722d7068702f6c6963656e7365)](https://packagist.org/packages/jyil/lunar-php)

About lunarPHP
--------------

[](#about-lunarphp)

根据以下开源项目修改整合封装的一个php易经六十四卦排盘类库，只需要引入路口文件就可以简单的调用方法求出卦象结果

- [64divine](https://github.com/tc31/64divine).

> 运行环境要求PHP7以上。

目录结构
----

[](#目录结构)

初始的目录结构如下：

```
├─core           		类库核心文件
│  ├─Calendar.lrp.php
│  ├─GanZhi.php
│  ├─Hexagrams.lrp.php
│  ├─Logger.lrp.php
│  ├─Lunar.lrp.php
│  └─Model.lrp.php
│  └─Common.lrp.php
│
├─config                系统配置文件
│  └─config.php
│
├─database              数据文件
│  └─gua.json
│
├─language              语言包
│  └─language.php
│
├─logs               	日志信息
│  └─xxx.log
│
├─autoloader.php        自动加载文件
├─example.php           示例文件
├─composer.json         composer 定义文件
├─lunarPHP.php          入口文件
├─README.md             README 文件

```

EXAMPLE
-------

[](#example)

```
php example.php -d yyyy-mm-dd -h 时辰

```

QUICK START
-----------

[](#quick-start)

```
require_once 'LunarPHP.php';

```

License
-------

[](#license)

lunarPHP is open-sourced software licensed under the [WTFPL license](http://www.wtfpl.net/about/).

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

2967d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/091f11a0bdfb28899eb734427e3544617f10f1176bec9084db9d65d207262605?d=identicon)[jyiL](/maintainers/jyiL)

---

Top Contributors

[![jyiL](https://avatars.githubusercontent.com/u/19472992?v=4)](https://github.com/jyiL "jyiL (41 commits)")

---

Tags

phplunar

### Embed Badge

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

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

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21422.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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