Download the PHP package honortaker/laravel-holidays-de without Composer

On this page you can find all versions of the php package honortaker/laravel-holidays-de. 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-holidays-de

honortaker/laravel-holidays-de

This package provides tools to import german holidays into your laravel application using api-feiertage.de API.

Getting Started

  1. Run composer require honortaker/laravel-holidays-de to install [the package]()
  2. Run php artisan migrate to apply the database scheme
  3. Run php artisan holidays:import to import holidays into the database
  4. Query holidays for your needs by using Holiday::query()

Database Scheme

To get started using german holidays in your application, you need to run the artisan migrate command. This package delivers a builtin migration that creates a table which will carry the information about the holidays.

The package allows you to set an alternative database table name for the model by changing values in the configuration file.

Import Holidays

After migrating your database, you can go ahead adn import the holiday information from the api using the HolidaysImportCommand:

By running the command, the holidays for the current year will be imported into the database.

Optionally you can pass in a specific year into the command:

Query Holidays

When you filled your database using the artisan command above, you are ready to query the data for your needs by using the Holiday model:

Configuration

The package delivers a builtin configuration file which can also be published to overwrite values:


Configuration: holidays-de.holidays_table_name

To prevent collisions with your application tables, you can decide how the table storing the holiday information should be named.

By default, it is named holidays.


Configuration: holidays-de.api_url

The url of the API is also configurable. This config should not be changed because the package expects the response data to be in a specific scheme. However, if the API will move to another domain or change the url in another way, the sourcecode does not need to be touched.

By default, it is set to https://get.api-feiertage.de.


All versions of laravel-holidays-de with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^11
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 honortaker/laravel-holidays-de contains the following files

Loading the files please wait ....