roussks / financial-year-carbon
This is the Carbon Adapter implementation of roussks/financial-year library.
Requires
- php: ^7.1
- nesbot/carbon: ^1.26.3 || ^2.0
- roussks/financial-year: 1.1.*
Requires (Dev)
- fzaninotto/faker: ~1.8
- phpunit/phpunit: ^7 || ^8
This package is auto-updated.
Last update: 2024-09-24 06:21:31 UTC
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.