PHPackages                             sanotto/atk-attribute-yearmonth - 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. [Framework](/categories/framework)
4. /
5. sanotto/atk-attribute-yearmonth

ActiveLibrary[Framework](/categories/framework)

sanotto/atk-attribute-yearmonth
===============================

ATK Attribute to handle year/month entries in the form YYYY-MM

1.0.0(8y ago)044MITPHPPHP &gt;=5.5.9

Since Jul 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/sanotto/atk-attribute-yearmonth)[ Packagist](https://packagist.org/packages/sanotto/atk-attribute-yearmonth)[ RSS](/packages/sanotto-atk-attribute-yearmonth/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Year Month Attribute
====================

[](#year-month-attribute)

A YYYY-MM/YYYYMM attribute for ATK9
-----------------------------------

[](#a-yyyy-mmyyyymm-attribute-for-atk9)

This attribute lets you specify a month of a year in the following formats:

- YYYYMM

Using
-----

[](#using)

Use it as any other atk Attribute with

```
	$this->add(new YearMonthAttribute('period', AF_OBLIGATORY));

```

Why not using a simple numeric attribute instead of this?
---------------------------------------------------------

[](#why-not-using-a-simple-numeric-attribute-instead-of-this)

Well, using YearMonth attribute will asure you that:

- No years below 1900 and above 2200 are entered.
- No month above 12 (i.e. 201714 will not be deemed valid).

Data base store type
--------------------

[](#data-base-store-type)

The value will be stored in an **int** column in the form YYYYMM where:

- YYYY Is the year in 4 digits precision (i.e. 2017)
- MM is the month

Thus 201701 is lower than 201702 and higher than 201612.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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

3212d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

searchframeworkSkeletonatk

### Embed Badge

![Health badge](/badges/sanotto-atk-attribute-yearmonth/health.svg)

```
[![Health](https://phpackages.com/badges/sanotto-atk-attribute-yearmonth/health.svg)](https://phpackages.com/packages/sanotto-atk-attribute-yearmonth)
```

PHPackages © 2026

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