Skip to content

Latest commit

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

🇮🇩 Indonesian National Dayoffs

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

CodeIgniterPHP 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

<?phpservice('dayoff')->now(); // Check if today is a holidayservice('dayoff')->yesterday(); // Get holiday info for yesterdayservice('dayoff')->tomorrow(); // Get holiday info for tomorrowservice('dayoff')->thisWeek(); // Get holidays in the current weekservice('dayoff')->thisMonth(); // Get holidays in the current monthservice('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.

About

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

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages