Download the PHP package codebros-nl/dutch-holidays without Composer

On this page you can find all versions of the php package codebros-nl/dutch-holidays. 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 dutch-holidays

Nederlandse feestdagen voor Laravel

Nederlandse feestdagen en werkdagberekeningen voor Laravel, met sector- en cao-profielen zodat je per klant of branche kunt configureren welke dagen vrij zijn.

Geen externe dependencies voor de holiday-berekeningen — alles is intern via het Gauss-algoritme.


Features


Installatie

Publiceer optioneel de config:


Snelstart


Sectoren (cao's)

Het grootste verschil tussen cao's is welke dagen wel of niet vrij zijn. Daarom werkt het pakket met sectorprofielen.

Beschikbare sectoren

Key Sector Goede Vrijdag Bevrijdingsdag
default Wettelijk nee lustrumjaren
government Overheid ja ja
construction Bouw ja ja
metal Metaal & Techniek ja lustrumjaren
healthcare Zorg ja lustrumjaren
education Onderwijs ja ja
hospitality Horeca nee lustrumjaren
ict ICT / Software nee ja
grafimedia Grafimedia ja ja
retail Retail nee lustrumjaren

Sector kiezen

Default sector instellen

In .env:

Of in config/dutch-holidays.php:


Eigen sectoren / cao's

Methode 1: ad-hoc policies

Voor incidenteel gebruik zonder een sector aan te maken:

Methode 2: SectorProfile registreren

Voor cao's die je vaker nodig hebt — registreer ze in een ServiceProvider:

Daarna:

Methode 3: dynamisch per klant in een service

Bij multi-tenant apps waar policies in de database staan:


Extra (niet-wettelijke) dagen

Voor regionale of bedrijfsspecifieke dagen:

Beschikbare extra-keys:


Werkdag-helpers


Carbon-macro's

Zijn standaard geregistreerd (uit te zetten via config):


Datumbereik en meerdere jaren


Collections

Resultaten zijn HolidayCollection-instances (extends \Illuminate\Support\Collection) met handige scoping:

Plus alle standaard Collection-methods (filter, map, groupBy, ...).


Artisan-commands


Custom HolidayProvider (geavanceerd)

Voor compleet eigen feestdagenbronnen (bijv. uit een database, een externe API of voor schoolvakanties) implementeer je HolidayProvider:

Providers worden ná de nationale set toegevoegd en kunnen bestaande dagen overrulen via dezelfde HolidayKey.


Disclaimer over cao-data

De voorgedefinieerde sectorprofielen weerspiegelen de meest gangbare invulling, maar cao-afspraken verschillen per werkgever en veranderen jaarlijks. Controleer altijd de actuele cao van je klant en pas indien nodig aan via ->withPolicies() of een eigen geregistreerde sector.


Testing


License

MIT — see LICENSE.md.


All versions of dutch-holidays with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/console Version ^11.0|^12.0|^13.0
nesbot/carbon Version ^2.72|^3.0
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 codebros-nl/dutch-holidays contains the following files

Loading the files please wait ...