worksome/uk-tax-allowance
最新稳定版本:v1.4.0
Composer 安装命令:
composer require worksome/uk-tax-allowance
包简介
A package helping in determining the Uk weekly or monthly tax allowance for a specific date range
README 文档
README
This package is for determining a UK employee tax allowance for a specific date range.
You may get weekly or monthly number of allowance, as well as weekly or monthly period end dates for the provided date range.
Installation
composer require worksome/uk-tax-allowance
Usages
UkTaxAllowanceCalculator
/** * @param \Worksome\UkTaxAllowance\UkTaxAllowanceCalculator $ukTaxAllowanceCalculator * @param $dateStart \Carbon\Carbon * @param $dateEnd \Carbon\Carbon */
Weekly allowance
// Get weekly allowance count for a specific date range $weeklyAllowanceCount = $ukTaxAllowanceCalculator->weekly($dateStart, $dateEnd); // Get weekly allowance end dates for a specific date range $weeklyAllowanceEndDates = $ukTaxAllowanceCalculator->weeklyEndDatesBetween($dateStart, $dateEnd);
Monthly allowance
// Get monthly allowance end dates for a specific date range $monthlyAllowanceEndDates = $ukTaxAllowanceCalculator->monthlyEndDatesBetween($dateStart, $dateEnd); // Get monthly allowance count for a specific date range $monthlyAllowanceCount = $ukTaxAllowanceCalculator->monthly($dateStart, $dateEnd);
Calendar
You may use our YasumiUkCalendar which relies on the azuyalabs/yasumi package. For Laravel users, UkTaxAllowanceServiceProvider will register it by default.
Or create your own and have it implement Worksome\UkTaxAllowance\Contracts\UkCalendar
统计信息
- 总下载量: 491.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-02