Skip to content

This PHP package provides functionality to check if a given date is a holiday in Morocco.

License

Notifications You must be signed in to change notification settings

Faizarabhi/holiday-morocco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moroccan Holidays Package

This PHP package provides functionality to check if a given date is a holiday in Morocco.

Installation

You can install this package via Composer. Run the following command in your terminal:

composer require vendor/moroccan-holidays

#Usage

To check if today is a holiday, you can use the HolidayChecker class provided by this package. Here's an example:

require 'vendor/autoload.php';

use Vendor\MoroccanHolidays\HolidayChecker;

// Check if today is a holiday
$result = HolidayChecker::isTodayHoliday();

if ($result['status']) {
    echo "Today is a holiday in Morocco: " . $result['name'];
} else {
    echo "Today is not a holiday in Morocco.";
}

About

This PHP package provides functionality to check if a given date is a holiday in Morocco.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages