PHPackages                             shiren/tam - 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. shiren/tam

ActiveLibrary

shiren/tam
==========

实仁易学·理法

v1.5(4y ago)1851MITPHPPHP &gt;=7.3

Since Oct 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/10in-tech/tam)[ Packagist](https://packagist.org/packages/shiren/tam)[ RSS](/packages/shiren-tam/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (1)

实仁易学理法算法核心
==========

[](#实仁易学理法算法核心)

> ShiRen`s Theory and method(TAM)

安装
--

[](#安装)

```
composer require shiren/tam
```

定义
--

[](#定义)

- 阴阳

    01阴阳
- 五行定义

    01234水木火土金
- 天干定义

    0123456789甲乙丙丁戊己庚辛壬癸
- 地支定义

    01234567891011子丑寅卯辰巳午未申酉戌亥

> 更多定义参考[Definition](./src/Definition.php)

功能列表
----

[](#功能列表)

- 算法功能

    - 干支转化阴阳
    - 天干转五行
    - 地支转五行
    - 根据两个五行元素计算五神
    - 判断五神的命强命弱
    - 判断两个五行是否相生
    - 判断两个五行是否相克
    - 判断两个天干是否合
    - 判断两个天干是否冲
    - 判断两个地支是否合
    - 判断两个地支是否冲
    - 判断三个地支是否三合
    - 判断三个地支是否三会
    - 判断天干地支是否干支暗合
    - 判断天干地支是否干支暗冲
    - 判断两个地支是否暗合
    - 天干索引向前向后偏移
    - 地支索引向前向后偏移
    - 年上起月法
    - 日上起时法
- 中文字符串化

    - 索引转阴阳
    - 索引转五行
    - 索引转天干
    - 索引转地支
    - 索引转五神
- 工厂方法

    - 根据天干拼音转天干索引
    - 根据地支拼音转地支索引
    - 根据五行拼音转五行索引

LICENSE
-------

[](#license)

[MIT](./LICENSE)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.2% 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 ~11 days

Total

7

Last Release

1615d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/89234810?v=4)[实印](/maintainers/10in-tech)[@10in-tech](https://github.com/10in-tech)

---

Top Contributors

[![10in-tech](https://avatars.githubusercontent.com/u/89234810?v=4)](https://github.com/10in-tech "10in-tech (32 commits)")[![soonio](https://avatars.githubusercontent.com/u/18730233?v=4)](https://github.com/soonio "soonio (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shiren-tam/health.svg)

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

PHPackages © 2026

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