Download the PHP package utrodus/malaysia-public-holiday without Composer

On this page you can find all versions of the php package utrodus/malaysia-public-holiday. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package malaysia-public-holiday

πŸ‡²πŸ‡Ύ Malaysia Public Holiday

PHP Version Build Status Packagist Stable Version

Malaysia Public Holiday is a PHP library to fetch official public holiday data for all Malaysian states by scraping Office Holidays.

It’s best for HR applications, attendance systems, logistics planning, calendars, and any system that needs accurate holiday information.


✨ Features


πŸ’Ό Use Cases



πŸš€ Requirements


πŸ› οΈ Tech Stack

Tool Purpose
PHP >= 8.1 Core programming language
Guzzle HTTP requests
Symfony BrowserKit Web scraping (HTML crawling)
PHPUnit Unit testing
GitHub Actions Continuous integration

πŸ“¦ Installation


⚑ Usage


I have included code examples to try this library in each file within the examples folder. Please see below:

Use Case Example File Description
Get holidays for a specific state examples/get_holidays_for_specific_state.php Retrieves holidays for a particular state in the current year.
Get holidays for a specific state and year examples/get_holidays_for_specific_state_and_year.php Fetches holidays for a state in a specific year.
Get holidays for all states examples/get_holidays_for_all_states.php Retrieves holidays for all Malaysian states in the current year.
Get holidays for all states and a specific year examples/get_holidays_for_all_states_and_year.php Fetches holidays for all states in a given year.
Filter holidays by month examples/get_holidays_for_state_filtered_by_month.php Filters holidays for a state in a specific month.
Group holidays by month examples/get_holidays_for_state_grouped_by_month.php Groups holidays for a state by month.
Handling invalid regions examples/handling_invalid_region.php Demonstrates how the library handles invalid region inputs.
Using alternative region names examples/using_alternative_region_name.php Shows support for alias state names.


πŸ§ͺ Running Tests


πŸ“¬ Contributing

Pull requests and suggestions are welcome! If you find bugs or have a feature request, feel free to open an issue.


πŸ“„ License

This project is open-source and available under the MIT License.



All versions of malaysia-public-holiday with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
symfony/browser-kit Version ^7.2
symfony/http-client Version ^7.2
symfony/css-selector Version ^7.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package utrodus/malaysia-public-holiday contains the following files

Loading the files please wait ...