2017 © Pedro Peláez
 

codeigniter-third-party codeigniter-holidayapi

CodeIgniter third-party library deals with Holiday API based on official PHP library

image

joel-depiltech/codeigniter-holidayapi

CodeIgniter third-party library deals with Holiday API based on official PHP library

  • Friday, December 22, 2017
  • by joel-dt
  • Repository
  • 1 Watchers
  • 2 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

CodeIgniter Holiday API

Latest Stable Version License, (*1)

CodeIgniter third-party library deals with Holiday API based on official PHP library ., (*2)

Installation

Note that following steps assume that you have correctly installed Composer and configured CodeIgniter on your server., (*3)

Please use Composer to install it and include it as a third-party package in your CodeIgniter application., (*4)

composer require joel-depiltech/codeigniter-holidayapi, (*5)

  1. Make sure you already use Composer auto-loader in your config file (application/config/config.php)
$config['composer_autoload'] = TRUE; // or a custom path as 'vendor/autoload.php'
  1. Include this package with Loader library
$this->load->add_package_path(APPPATH . 'third_party/holidayapi');
  1. Include this library with Loader library
$this->load->library('HolidayAPI');
  1. Configure your api keys in config file (config/holidayapi.php)
$config['holidayapi_test_api_key'] = '058f4506-caf0-4bdd-b52b-cbc98e20e02e';
$config['holidayapi_live_api_key'] = '*** Fill in your own Live API key ***';

Usage

Simple call

By default, fetch all holidays of this year for USA :, (*6)

<?php
$this->load->library('HolidayAPI');
$holidays = $this->holidayapi->holidays();
print_r($holidays);

Complete call

A example to fetch all upcoming holidays for France from Christmas to end of 2018 with a specific API key :, (*7)

<?php
$this->load->library('HolidayAPI', array('holidayapi_live_api_key' => '** An other API key **'));
$holidays = $this->holidayapi->holidays('FR', 2018, 12, 25, FALSE, TRUE);
print_r($holidays);

The Versions

22/12 2017

dev-master

9999999-dev https://github.com/joel-depiltech/codeigniter-holidayapi

CodeIgniter third-party library deals with Holiday API based on official PHP library

  Sources   Download

MIT

The Requires

 

api codeigniter holiday holidays holidayapi codeigniter-library holiday-api

22/12 2017

1.1.0

1.1.0.0 https://github.com/joel-depiltech/codeigniter-holidayapi

CodeIgniter third-party library deals with Holiday API based on official PHP library

  Sources   Download

MIT

The Requires

 

api codeigniter holiday holidays holidayapi codeigniter-library holiday-api

21/12 2017

1.0.0

1.0.0.0 https://github.com/joel-depiltech/codeigniter-holidayapi

CodeIgniter third-party library deals with Holiday API based on official PHP library

  Sources   Download

MIT

The Requires

 

api codeigniter holiday holidays holidayapi codeigniter-library holiday-api