定制 aselsan/dayoff 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aselsan/dayoff

Composer 安装命令:

composer require aselsan/dayoff

包简介

Indonesian National Dayoffs

README 文档

README

Indonesian National Dayoffs is a simple and handy package to help you fetch and display public holiday information in your CodeIgniter 4 application.

CodeIgniter PHP Version Require

Installation

Use Composer to install the package:

composer require aselsan/dayoff dev-develop

Migration

Run the following migration to create the necessary database tables:

php spark migrate --all

Fetch Holiday Data

To scrape Indonesian public holiday data, use the custom CLI command:

php spark scrap:dayoff --year 2025

Or simply run without the --year option to fetch holidays for the current year:

php spark scrap:dayoff

Available Methods

<?php

service('dayoff')->now();        // Check if today is a holiday
service('dayoff')->yesterday();  // Get holiday info for yesterday
service('dayoff')->tomorrow();   // Get holiday info for tomorrow
service('dayoff')->thisWeek();   // Get holidays in the current week
service('dayoff')->thisMonth();  // Get holidays in the current month
service('dayoff')->thisYear();   // Get holidays in the current year

Credit

Data is sourced from the awesome web at www.tanggalan.com. Terima kasih!

License

This project is licensed under the MIT License - see the LICENSE file for details.

统计信息

  • 总下载量: 35
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-20