PHPackages                             inquid/yii2-date-time-handler - 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. inquid/yii2-date-time-handler

ActiveYii2-extension

inquid/yii2-date-time-handler
=============================

Date time handler for yii2

0550PHP

Since Jan 10Pushed 7y ago2 watchersCompare

[ Source](https://github.com/inquid/yii2-date-time)[ Packagist](https://packagist.org/packages/inquid/yii2-date-time-handler)[ RSS](/packages/inquid-yii2-date-time-handler/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![Yii Framework](https://camo.githubusercontent.com/944b725bf848a55f1cee1bcc6f951c5570775eb4eaeb19669a0789432809d18c/687474703a2f2f7374617469632e7969696672616d65776f726b2e636f6d2f66696c65732f6c6f676f2f7969692e706e67) ](http://www.yiiframework.com/)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=contact@inquid.co&item_name=Yii2+extensions+support&item_number=22+Campaign&amount=5%2e00&currency_code=USD)

Yii2 Datetime Handler
=====================

[](#yii2-datetime-handler)

Date time handler for yii2

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist inquid/yii2-date-time-handler "*"

```

or add

```
"inquid/yii2-date-time-handler": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use the methods you need as the following:

```
\inquid\date_time\DateTimeHandler::formatDate($date,'Y-m-d');

\inquid\date_time\DateTimeHandler::now();

\inquid\date_time\DateTimeHandler::getWeekNumberByDate('2018-09-09');
```

And thats it!

SUPPORT
-------

[](#support)

[![paypal](https://camo.githubusercontent.com/e1ff554a09e8e92bef25abc553ff05b88f45afd695877cf12f3a46558ef65b2e/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e61746543435f4c472e676966)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=contact@inquid.co&item_name=Yii2+extensions+support&item_number=22+Campaign&amount=5%2e00&currency_code=USD)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1505641?v=4)[Luis Gonzalez](/maintainers/gogl92)[@gogl92](https://github.com/gogl92)

---

Top Contributors

[![gogl92](https://avatars.githubusercontent.com/u/1505641?v=4)](https://github.com/gogl92 "gogl92 (8 commits)")

### Embed Badge

![Health badge](/badges/inquid-yii2-date-time-handler/health.svg)

```
[![Health](https://phpackages.com/badges/inquid-yii2-date-time-handler/health.svg)](https://phpackages.com/packages/inquid-yii2-date-time-handler)
```

PHPackages © 2026

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