rovangju/carbon-fy
最新稳定版本:1.0.0
Composer 安装命令:
composer require rovangju/carbon-fy
包简介
Carbon DateTime extension to determine fiscal year (FY)
README 文档
README
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
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
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 */
统计信息
- 总下载量: 3.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPLv2
- 更新时间: 2015-02-19