PHPackages                             aselsan/dayoff - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. aselsan/dayoff

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aselsan/dayoff
==============

Indonesian National Dayoffs

052PHP

Since May 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/warcooft/dayoff)[ Packagist](https://packagist.org/packages/aselsan/dayoff)[ RSS](/packages/aselsan-dayoff/feed)WikiDiscussions develop Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

🇮🇩 Indonesian National Dayoffs
==============================

[](#-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.

[![CodeIgniter](https://camo.githubusercontent.com/41a7291caa1d9cb928326238172afcad14cc66778d5ea24b907e6e74d5e06116/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e697465722d253545342e342e302d626c7565)](https://camo.githubusercontent.com/41a7291caa1d9cb928326238172afcad14cc66778d5ea24b907e6e74d5e06116/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e697465722d253545342e342e302d626c7565)[![PHP Version Require](https://camo.githubusercontent.com/29e76b25f44fd19ba3a88f85f00b3ac7329ffd604075db0fbbeda87f6c794491/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e302d626c7565)](https://camo.githubusercontent.com/29e76b25f44fd19ba3a88f85f00b3ac7329ffd604075db0fbbeda87f6c794491/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e302d626c7565)

Installation
------------

[](#installation)

Use Composer to install the package:

```
composer require aselsan/dayoff dev-develop

```

Migration
---------

[](#migration)

Run the following migration to create the necessary database tables:

```
php spark migrate --all

```

Fetch Holiday Data
------------------

[](#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
-----------------

[](#available-methods)

```
