PHPackages                             yunqing/interval - 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. yunqing/interval

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

yunqing/interval
================

v0.0.2(1y ago)03PHP

Since Sep 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/deepCyan/php-interval)[ Packagist](https://packagist.org/packages/yunqing/interval)[ RSS](/packages/yunqing-interval/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

### 处理区间运算的包包

[](#处理区间运算的包包)

- 使用方法 ```
      // 构建区间
      $interval1 = new Interval();
      $interval1->setData(1, 8);
      // 设置开区间(默认创建闭区间)
      $interval1->setLeftOpen();
      $interval1->setRightOpen();
      // 获取集合数组
      $interval1->toArray();

      // 检查两个区间有没有交集
      $calculate = new IntervalCalculate();
      $checkIntersects = $calculate->checkIntersects($interval1, $interval2);
      // 获取两个区间的交集
      $getIntersects = $calculate->getIntersects($interval1, $interval2);
      // 获取两个区间的并集
      $union = $calculate->getUnion($interval1, $interval2);
      // 检查集合1是否包含集合2
      $calculate->checkContains($interval1, $interval2);
    ```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

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

619d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/yunqing-interval/health.svg)

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

PHPackages © 2026

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