PHPackages                             lukasbesch/shortcode-year-or-years - 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. lukasbesch/shortcode-year-or-years

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

lukasbesch/shortcode-year-or-years
==================================

WordPress Plugin that provides a shortcode to display the current year, optionally including a start year. Commonly used in copyright notices.

1.0.0(6y ago)115MITPHPCI passing

Since Apr 1Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/lukasbesch/shortcode-year-or-years)[ Packagist](https://packagist.org/packages/lukasbesch/shortcode-year-or-years)[ RSS](/packages/lukasbesch-shortcode-year-or-years/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Shortcode: Year or years
========================

[](#shortcode-year-or-years)

Provides a WordPress shortcode to display the current year, and optionally a start year.

Commonly used for copyright notices.

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

[](#installation)

```
composer require lukasbesch/shortcode-year-or-years
```

Alternatively download the latest release from GitHub and install it into the plugins directory.

Usage
-----

[](#usage)

### Show current year

[](#show-current-year)

```
[year_or_years]
// 2026

```

### Show current year and a start year

[](#show-current-year-and-a-start-year)

```
[year_or_years from="2019"]
// 2019–2026

```

The start year will only be displayed if it is lower than the current year:

```
[year_or_years from="2026"]
// 2026

```

Optionally specify a custom separator:

```
[year_or_years from="1984" separator=" until "]
// 1984 until 2026

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance52

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

2230d ago

### Community

Maintainers

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

---

Top Contributors

[![lukasbesch](https://avatars.githubusercontent.com/u/241689?v=4)](https://github.com/lukasbesch "lukasbesch (18 commits)")

---

Tags

copyrightdate-formattingshortcodewordpress-plugin

### Embed Badge

![Health badge](/badges/lukasbesch-shortcode-year-or-years/health.svg)

```
[![Health](https://phpackages.com/badges/lukasbesch-shortcode-year-or-years/health.svg)](https://phpackages.com/packages/lukasbesch-shortcode-year-or-years)
```

###  Alternatives

[barracudanetworks/forkdaemon-php

A library to make setup and management of forking daemons in PHP easy.

3863.8k2](/packages/barracudanetworks-forkdaemon-php)

PHPackages © 2026

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