michael-orenda/fiscal
最新稳定版本:v1.0.0
Composer 安装命令:
composer require michael-orenda/fiscal
包简介
A Laravel 12 fiscal management module providing fiscal years, periods, closing rules, period locking, and API endpoints for accounting systems.
关键字:
README 文档
README
michael-orenda/fiscal is a lightweight Laravel 12 package for managing fiscal years, fiscal periods, and date validation for financial systems.
It is designed as a reusable module for accounting, microfinance, ERP, and SACCO applications.
This package focuses on:
- Generating fiscal years
- Generating fiscal periods (Monthly, Quarterly, 4-4-5, or fully custom)
- Opening, closing, and locking periods
- Validating dates against fiscal rules
- Providing clean API endpoints
Installation
composer require michael-orenda/fiscal
Configuration
php artisan vendor:publish --provider="MichaelOrenda\Fiscal\Providers\FiscalServiceProvider"
Database Migrations
Creates fiscal_years and fiscal_periods.
Usage Example
$fiscal = app(MichaelOrenda\Fiscal\Services\FiscalService::class); $year = $fiscal->createYear('2025-01-01', 'monthly');
API Endpoints
- GET /api/orenda/fiscal/years
- POST /api/orenda/fiscal/years
- GET /api/orenda/fiscal/years/{id}
- POST /api/orenda/fiscal/periods/{id}/close
- POST /api/orenda/fiscal/periods/{id}/lock
- POST /api/orenda/fiscal/periods/{id}/open
- POST /api/orenda/fiscal/validate-date
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-06