定制 joel-depiltech/codeigniter-holidayapi 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

joel-depiltech/codeigniter-holidayapi

Composer 安装命令:

composer require joel-depiltech/codeigniter-holidayapi

包简介

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

README 文档

README

Latest Stable Version License

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

Installation

Note that following steps assume that you have correctly installed Composer and configured CodeIgniter on your server.

Please use Composer to install it and include it as a third-party package in your CodeIgniter application.

composer require joel-depiltech/codeigniter-holidayapi

  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 :

<?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 :

<?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);

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-12-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固