PHPackages                             busayo/laravel-yearly - 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. busayo/laravel-yearly

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

busayo/laravel-yearly
=====================

Provides helper function to get the current year and a range of years

1.1.0(10y ago)114.1k4MITPHPPHP &gt;=5.5.9

Since Sep 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/unicodeveloper/laravel-yearly)[ Packagist](https://packagist.org/packages/busayo/laravel-yearly)[ Docs](https://github.com/busayo/laravel-yearly)[ RSS](/packages/busayo-laravel-yearly/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

laravel-yearly
==============

[](#laravel-yearly)

[![Latest Stable Version](https://camo.githubusercontent.com/e692a467f859ae42558fffe665c278bf4cf2e27768820e8181256a21a4ff3832/68747470733a2f2f706f7365722e707567782e6f72672f62757361796f2f6c61726176656c2d796561726c792f762f737461626c652e737667)](https://packagist.org/packages/busayo/laravel-yearly)[![](https://camo.githubusercontent.com/984f6792e3d81e34b782c12770dfd5e6153ea75f5e71d8e668933b988ba1a81f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e69636f646576656c6f7065722d617070726f7665642d627269676874677265656e2e737667)](https://camo.githubusercontent.com/984f6792e3d81e34b782c12770dfd5e6153ea75f5e71d8e668933b988ba1a81f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e69636f646576656c6f7065722d617070726f7665642d627269676874677265656e2e737667)[![License](https://camo.githubusercontent.com/1ae3ae7577179ddbca3f3d38a240accbba882842f0184011b5bbf355562b380c/68747470733a2f2f706f7365722e707567782e6f72672f62757361796f2f6c61726176656c2d796561726c792f6c6963656e73652e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/97a69cfd047114f8475e88480610c67f5ce178a6db48e99f6784acf781e55212/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f62757361796f2f6c61726176656c2d796561726c792e737667)](https://travis-ci.org/busayo/laravel-yearly)[![Quality Score](https://camo.githubusercontent.com/3b9e170ccb0fa903941e482c420bd40386cf35738f444eebc605869c463d49db/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f62757361796f2f6c61726176656c2d796561726c792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/busayo/laravel-yearly)[![Total Downloads](https://camo.githubusercontent.com/95624675d038efa282b53948ed3cb3e5090f5b5eee15c694d723e40fd24dce59/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62757361796f2f6c61726176656c2d796561726c792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/busayo/laravel-yearly)

> Laravel 5 Package to help keep your copyright year up-to-date. Simple but insanely useful.

Install
-------

[](#install)

[PHP](https://php.net) 5.5+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.

Via Composer

```
$ composer require busayo/laravel-yearly
```

Another alternative is to simply add the following line to the require block of your `composer.json` file.

```
"unicodeveloper/laravel-yearly": "1.1.*"

```

Then run `composer install` or `composer update` to download it and have the autoloader updated.

Add this to your providers array in `config/app.php`

```
// Laravel 5: config/app.php

'providers' => [
    ...
    'Unicodeveloper\Yearly\YearlyServiceProvider',
    ...
];
```

This package also comes with a facade

```
// Laravel 5: config/app.php

'aliases' => [
    ...
    'Yearly' => 'Unicodeveloper\Yearly\YearlyFacade',
    ...
]
```

Usage
-----

[](#usage)

Use it in your views, preferably in your footer section like this:

```
{{ current_year() }}  // returns 2015 ( This is the current year presently )

{{ year_range(2002) }} // returns 2002 - 2015
```

For those that love Facades immensely, I have provided the cake for you 😄 like so:

```
{{ Yearly::current_year() }}  // returns 2015 ( This is the current year presently )

{{ Yearly::year_range(2002) }} // returns 2002 - 2015
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

You can run the tests with:

```
vendor/bin/phpunit run
```

Alternatively, you can run the tests like so:

```
composer test
```

Inspiration
-----------

[](#inspiration)

- [Robby on Rails: Year After Year](http://www.robbyonrails.com/articles/2008/03/24/dry-a-year-after-year)

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Prosper Otemuyiwa](https://twitter.com/unicodeveloper)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 97.8% 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

Every ~20 days

Total

3

Last Release

3859d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

1.0.1PHP &gt;=5.5.9

### Community

Maintainers

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

---

Top Contributors

[![unicodeveloper](https://avatars.githubusercontent.com/u/2946769?v=4)](https://github.com/unicodeveloper "unicodeveloper (45 commits)")[![iamraphson](https://avatars.githubusercontent.com/u/3502724?v=4)](https://github.com/iamraphson "iamraphson (1 commits)")

---

Tags

laravelfooterYearcopyrightbusayolaravel-yearlyyearAfteryear

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/busayo-laravel-yearly/health.svg)

```
[![Health](https://phpackages.com/badges/busayo-laravel-yearly/health.svg)](https://phpackages.com/packages/busayo-laravel-yearly)
```

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[unicodeveloper/laravel-email-validator

Provides a Facade to help validate and verify email addresses

2332.5k](/packages/unicodeveloper-laravel-email-validator)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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