Download the PHP package szymondukla/holiday-api-wrapper without Composer

On this page you can find all versions of the php package szymondukla/holiday-api-wrapper. 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 holiday-api-wrapper

Festivo Holiday API PHP Wrapper

API Version: 1.1

Documentation https://getfestivo.com/documentation

Table of contents

API Key

As of 27th of May 2019 we require all users to sign up and generate their API key. We offer a spectrum of different subscription plans, including our Developer plan. Please check your account for more information.

Countries

Full list of countries is available at getfestivo.com.

Endpoints

Currently, only two endpoints are supported:

Parameters

You can filter returned holidays by date and upcoming or past events:

Name Example Mandatory Description
api_key af543g6454hh567h565665hgf456 yes A key available on your Dashboard page once you sing up and sign into your account. Don't have an account yet? Get started FOR FREE!
country PL yes ISO 3166-1 alpha-2 format
year 2018 yes ISO 8601 format (CCYY)
month 4 or 04 no 1 or 2 digit month (1-12)
day 7 or 07 no 1 or 2 digit day (1-31 depending on the month)
previous false no boolean; returns the previous holidays based on the date (works with all parameters listed before)
upcoming true no boolean; returns the previous holidays based on the date (works with all parameters listed before except previous)
pretty true no boolean; prettifies returned JSON for a better human reading performance
public true no boolean; returns only official, public holidays (Premium and Enterprise plan only)

Full list of parameters is available in our Documentation

Installation Instructions

  1. Download and install package from Composer via . You can also download an archive and setup it manually using command.
  2. Include main class into your project and add required declaration, i.e.

  3. Initiate the library with
  4. Replace YOUR API KEY with API Key generated as per instructions
  5. From now on you can use $handle to access holiday information for a given country using . To return only holidays matching specific conditions, you can pass them as parameters:

File Tree

Opening an Issue

Before opening an issue there are a couple of considerations:


All versions of holiday-api-wrapper with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
guzzlehttp/guzzle Version >5.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 szymondukla/holiday-api-wrapper contains the following files

Loading the files please wait ....