Skip to content

Releases: utrodus/malaysia-public-holiday

v1.0.2

21 Apr 15:53
f0073da
Compare
Choose a tag to compare
  • Change minimum required php version to >= 8.2

V1.0.1

20 Apr 08:17
Compare
Choose a tag to compare

Version 1.0.1 - Add formatHolidayData Function

This release introduces a new function to the MalaysiaHoliday class:

  • formatHolidayData(array $response): string: This function takes the raw holiday data array as input and returns a formatted JSON string, making it easier to use and display holiday information.

This update enhances the library's utility by providing a convenient way to structure the holiday data for various applications.

Initial Release v1.0.0

19 Apr 17:12
Compare
Choose a tag to compare

🎉 Introducing Malaysia Public Holiday v1.0.0 - The Initial Release! 🎉

We are thrilled to announce the first stable release of the Malaysia Public Holiday PHP library! This version marks a significant milestone, providing a reliable and easy-to-use solution for fetching official public holiday data for all Malaysian states.

Key Features in this Release:

  • Comprehensive Holiday Data: Access public holiday information sourced directly from official sources for all states and federal territories in Malaysia.
  • Year and State Specific: Retrieve holidays for a specific year and/or a particular state.
  • State Alias Support: Use common aliases (e.g., KL, Johore) for easier state querying.
  • Simple Integration: Easily integrate the library into any PHP project with clear and straightforward usage.
  • Well-Tested: Includes a comprehensive suite of unit tests to ensure reliability and correctness.

Use Cases:

This library is ideal for various applications, including:

  • HR and employee management systems
  • Calendar applications
  • Logistics and delivery planning
  • Event scheduling

Installation:

Install via Composer:

composer require utrodus/malaysia-public-holiday

Usage Example:

use MalaysiaHoliday\MalaysiaHoliday;

$holiday = new MalaysiaHoliday();

// Get all holidays for Selangor in the current year
$holidays = $holiday->fromState('Selangor')->get();

print_r($holidays);

What's Next?

In future releases, we plan to explore:

  • Filtering holidays by date range: Allowing users to retrieve holidays within a specific start and end date.
  • Caching mechanisms: Implementing caching to improve performance by reducing redundant requests to the data source.
  • More robust error handling and caching mechanisms.

Thank You!

I appreciate your interest in the Malaysia Public Holiday library! We'd like to hear from you and your feedback. If you encounter any issues or have suggestions, please don't hesitate to open an issue on GitHub.

Happy coding!