library carbon-fy
Carbon DateTime extension to determine fiscal year (FY)
rovangju/carbon-fy
Carbon DateTime extension to determine fiscal year (FY)
- Wednesday, March 16, 2016
- by rovangju
- Repository
- 1 Watchers
- 1 Stars
- 1,301 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 1 Open issues
- 3 Versions
- 15 % Grown
Carbon Extension: Fiscal Year (FY)
, (*1)
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!, (*2)
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., (*3)
Usage is pretty straight forward:, (*4)
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 */
dev-master
9999999-dev
Carbon DateTime extension to determine fiscal year (FY)
Sources
Download
GPLv2
The Requires
The Development Requires
carbon
datetime
fiscal year
fy
dev-develop
dev-develop
Carbon DateTime extension to determine fiscal year (FY)
Sources
Download
GPLv2
The Requires
The Development Requires
carbon
datetime
fiscal year
fy
1.0.0
1.0.0.0
Carbon DateTime extension to determine fiscal year (FY)
Sources
Download
GPLv2
The Requires
The Development Requires
carbon
datetime
fiscal year
fy