Download the PHP package luedtke/laravel-holiday-facade without Composer

On this page you can find all versions of the php package luedtke/laravel-holiday-facade. 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 laravel-holiday-facade

Laravel Holiday Facade

A Laravel package for working with public holidays across multiple countries. Provides a clean facade API with multi-language support, region/state filtering, strict mode, and fully customisable holidays via config.


Requirements


Installation

The service provider is auto-discovered. Publish the config file:

Optionally publish the translation files if you want to customise holiday names:


Configuration


Basic Usage


Switching Drivers

Use the driver() method to switch country at runtime:


Supported Countries

Driver Country Regional holidays
germany Germany Yes — 16 Bundesländer
swedish Sweden No
finnish Finland No
netherlands Netherlands No

State / Region Filtering (Germany)

Germany has regional public holidays that apply only to specific Bundesländer. Pass a state code to filter:

Set a permanent default state via config or .env so you never have to pass it explicitly:


Strict Mode

By default, HolidayType::Observance days (e.g. Christmas Eve, Midsummer Eve, New Year's Eve) are excluded from semantic checks like isHoliday() and next() because they are not statutory days off.

Pass strict: false to include them:

Default $strict per method:

true (excludes observances) false (includes observances)
isHoliday, isWorkday, nextWorkday getHolidays, getHolidaysBetween
next, previous, countHolidays getHoliday, isHolidayByName

Translations

Every holiday has a stable translation key. Call translate() on any Holiday value object to get the name in a different language:

Supported locales: de, en, fi, nl, sv

Set the default translation locale in your .env:

Override individual translation files after publishing:


Custom Holidays

Add company-specific or one-time holidays to config/holiday.custom. They are automatically merged into every driver result.

Supported types: public, observance, custom


Holiday Value Object

Every method returns (or works with) a Holiday value object:


Testing


License

This package is open-sourced software licensed under the MIT license.


All versions of laravel-holiday-facade with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^13.0
ext-calendar Version *
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 luedtke/laravel-holiday-facade contains the following files

Loading the files please wait ...