PHPackages                             puweiyuer/php\_date - 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. puweiyuer/php\_date

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

puweiyuer/php\_date
===================

Time plug-in

v1.0.1(8y ago)014MITPHPPHP &gt;=5.4.0

Since Mar 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/puwei3402023/php_data)[ Packagist](https://packagist.org/packages/puweiyuer/php_date)[ RSS](/packages/puweiyuer-php-date/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

php\_data
=========

[](#php_data)

php时间插件

//返回当月开始时间 ,时间戳

echo \\WeiApplication\\GetDate::getMonthRange('201838'),"\\r\\n";

//字符串

echo \\WeiApplication\\GetDate::getMonthRange('2018-3-8',false,false),"\\r\\n";

echo \\WeiApplication\\GetDate::getMonthRange('2018-3-8',true,false),"\\r\\n";

//返回今天开始时间

echo \\WeiApplication\\GetDate::getDay('2018-3-8',true,false),"\\r\\n";

echo \\WeiApplication\\GetDate::getDay('2018-3-8',false,false),"\\r\\n";

echo \\WeiApplication\\GetDate::getDay('2018-3-8',true),"\\r\\n";

echo \\WeiApplication\\GetDate::getDay('2018-3-8',false),"\\r\\n";

//返回今年开始时间

echo \\WeiApplication\\GetDate::getYears('2018-3-8',true,false),"\\r\\n";

echo \\WeiApplication\\GetDate::getYears('2018-3-8',false,false),"\\r\\n";

echo \\WeiApplication\\GetDate::getYears('2018-3-8',true),"\\r\\n";

echo \\WeiApplication\\GetDate::getYears('2018-3-8',false),"\\r\\n";

//给定2个时间返回月数

echo \\WeiApplication\\GetDate::twoTimeToMonth('2018-5-10','2018-4-9'),"\\r\\n";

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3036d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15687715?v=4)[伟仔开心](/maintainers/puwei3402023)[@puwei3402023](https://github.com/puwei3402023)

---

Top Contributors

[![puwei3402023](https://avatars.githubusercontent.com/u/15687715?v=4)](https://github.com/puwei3402023 "puwei3402023 (7 commits)")

---

Tags

phptime-plug-indateyii-2.0

### Embed Badge

![Health badge](/badges/puweiyuer-php-date/health.svg)

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

###  Alternatives

[rlanvin/php-rrule

Lightweight and fast recurrence rules for PHP (RFC 5545)

70011.4M54](/packages/rlanvin-php-rrule)[knplabs/knp-time-bundle

Making your dates and durations look sensible and descriptive

6239.3M51](/packages/knplabs-knp-time-bundle)[league/period

Time range API for PHP

7335.7M22](/packages/league-period)[morilog/jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in PHP applications, based on Jalali (Shamsi) DateTime class.

9231.2M49](/packages/morilog-jalali)[brick/date-time

Date and time library

3623.6M94](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

20410.2M16](/packages/aeon-php-calendar)

PHPackages © 2026

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