PHPackages                             rovangju/carbon-fy - 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. rovangju/carbon-fy

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

rovangju/carbon-fy
==================

Carbon DateTime extension to determine fiscal year (FY)

1.0.0(11y ago)24.0k3[1 issues](https://github.com/rovangju/carbon-fy/issues)[1 PRs](https://github.com/rovangju/carbon-fy/pulls)GPLv2PHPPHP &gt;=5.3.3CI failing

Since Feb 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/rovangju/carbon-fy)[ Packagist](https://packagist.org/packages/rovangju/carbon-fy)[ RSS](/packages/rovangju-carbon-fy/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (4)Used By (0)

Carbon Extension: Fiscal Year (FY)
==================================

[](#carbon-extension-fiscal-year-fy)

[![Build Status](https://camo.githubusercontent.com/4c092232eaf3bcf442b1eb1580b3a24b4e7a4895593975c3ba7a377bb6efc78f/68747470733a2f2f7472617669732d63692e6f72672f726f76616e676a752f636172626f6e2d66792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rovangju/carbon-fy)

---

Don't reinvent the wheel on that funky date logic to determine what fiscal year it is, or what fiscal year something happened in. This simple package has your back!

Overview
--------

[](#overview)

The ideal usage scenario would be to use a single instance of the calculator, as most organizations observe a single FY for their accounting.

Usage is pretty straight forward:

### Basic usage

[](#basic-usage)

```
use CarbonExt\FiscalYear\Calculator;

$c = new Calculator(7, 1); /* FY starts on July 1 */

$c->get(new Carbon('2015-01-01')); /* 2015-06-29 */
$c->get(new Carbon('2015-07-01')); /* 2016-06-29 */
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

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

4152d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b0c99899a1fb5cb78591514949801e1dc8ad4d3c64eaf5f405dd78bb27c76ce?d=identicon)[rovangju](/maintainers/rovangju)

---

Top Contributors

[![rovangju](https://avatars.githubusercontent.com/u/780280?v=4)](https://github.com/rovangju "rovangju (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![markokeeffe](https://avatars.githubusercontent.com/u/1211393?v=4)](https://github.com/markokeeffe "markokeeffe (1 commits)")

---

Tags

datetimecarbonfiscal yearFY

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rovangju-carbon-fy/health.svg)

```
[![Health](https://phpackages.com/badges/rovangju-carbon-fy/health.svg)](https://phpackages.com/packages/rovangju-carbon-fy)
```

###  Alternatives

[illuminate/support

The Illuminate Support package.

630113.0M41.3k](/packages/illuminate-support)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k18](/packages/solspace-craft-freeform)[japanese-date/japanese-date

日本の暦、祝日を取り扱うライブラリ

1610.0k](/packages/japanese-date-japanese-date)[rovangju/carbon-nbd

Carbon DateTime extension to calculate the "next business day"

2125.6k](/packages/rovangju-carbon-nbd)[wilianx7/php-recurring

PHP library for generating recurring dates, schedules, and repeated task recurrences.

1050.7k](/packages/wilianx7-php-recurring)

PHPackages © 2026

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