PHPackages                             rajbir/date-of-year - 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. rajbir/date-of-year

ActiveFind-year[Utility &amp; Helpers](/categories/utility)

rajbir/date-of-year
===================

"A simple PHP package to calculate the day of the year based on a given date."

v1.0.0(3y ago)04MITPHP

Since Jun 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/rajbir-codepaper/DateOfYear1)[ Packagist](https://packagist.org/packages/rajbir/date-of-year)[ RSS](/packages/rajbir-date-of-year/feed)WikiDiscussions master Synced yesterday

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

DateOfYear
==========

[](#dateofyear)

DateOfYear is a PHP class that calculates the difference between a given year and the current year.

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

[](#installation)

Use [Composer](https://getcomposer.org/) to install the DateOfYear package.

```
composer require your-vendor-name/date-of-year
Usage
php
Copy code
use Dateofyear\DateOfYear;

// Create a new instance of DateOfYear
$dateOfYear = new DateOfYear(1995);

// Get the year difference
$difference = $dateOfYear->getYearDifference();
Testing
DateOfYear includes unit tests using PHPUnit. To run the tests, use the following command:

bash
Copy code
./vendor/bin/phpunit tests/DateOfYearTest.php
Contributing
Contributions are welcome! If you find any issues or want to add new features, please open an issue or submit a pull request.

License
This project is licensed under the MIT License.
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

1100d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/131158920?v=4)[Rajbir Shakya](/maintainers/rajbir-codepaper)[@rajbir-codepaper](https://github.com/rajbir-codepaper)

---

Top Contributors

[![rajbir-codepaper](https://avatars.githubusercontent.com/u/131158920?v=4)](https://github.com/rajbir-codepaper "rajbir-codepaper (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rajbir-date-of-year/health.svg)

```
[![Health](https://phpackages.com/badges/rajbir-date-of-year/health.svg)](https://phpackages.com/packages/rajbir-date-of-year)
```

###  Alternatives

[kris/laravel-form-builder

Laravel form builder - symfony like

1.7k2.3M46](/packages/kris-laravel-form-builder)[dusanbre/laravel-tolgee

Help with Laravel integration of Tolgee service

146.9k](/packages/dusanbre-laravel-tolgee)

PHPackages © 2026

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