roussks/financial-year-carbon
Composer 安装命令:
composer require roussks/financial-year-carbon
包简介
This is the Carbon Adapter implementation of roussks/financial-year library.
README 文档
README
General Details
This is the Carbon Adapter for the RoussKS\FinancialYear.
The library internally transforms, handles and returns Carbon Immutable Objects only.
Introduction, limitations and generic functionality is the same as the parent and described in RoussKS\FinancialYear readme.
Requirements
- PHP Version ^7.1 ( 7.1 =< PHP Version =< 7.x.x according to Composer docs version constraints )
Installation
composer require roussks/financial-year-carbon
Basic Use
require_once __DIR__ . '/vendor/autoload.php'; // CarbonAdapter // If instantiating with string, it must be of ISO-8601 format 'YYYY-MM-DD' $startDate = new \Carbon\Carbon::createFromDate('2019-01-01'); $fy = new \RoussKS\FinancialYear\CarbonAdapter('calendar', $startDate); echo $fy->getFyEndDate()->toDateString(); // 2019-12-31
Versioning
The current library will be using Semantic Versioning
As it relies on the parent's RoussKS\FinancialYear Interface, it will limit versioning to MINOR releases. Hence, when the parent class has a new feature and upgrades the PATCH version, the current library will remain in the Minor version until the new feature is implemented.
Non-breaking changes will result in a MINOR or a PATCH version update as classified by SemVer.
Major version releases will not guarantee backwards compatibility.
统计信息
- 总下载量: 63
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-23