joaofigueira/portugal-holidays
Composer 安装命令:
composer require joaofigueira/portugal-holidays
包简介
List of holidays of a given year or a series of years.
README 文档
README
Lists holidays of Portugal for a given year or a series of years.
Installation
Install using Composer
$ composer require joaofigueira/portugal-holidays
Usage
List using internal reference files:
use Holidays\Holidays; use Holidays\Clients\Json; use Holidays\Handlers\File; $client = new Json; $handler = new File; $holidays = new Holidays($client, $handler); $result = $holidays->get($years)->asArray();
List using external webservice call:
use Holidays\Holidays; use Holidays\Clients\Http; use Holidays\Handlers\Xml; $client = new Http; $handler = new Xml; $holidays = new Holidays($client, $handler); $result = $holidays->get($years)->asArray();
Contribute
You can clone and contribute to this project.
Setup local environment:
- make sure you have docker installed in your machine.
- clone the project.
- run setup:
$ ./setup.sh. You may have to$ chmod +x setup.shto be able to run the script. This will create the docker container and run composer install for you. - run tests:
$ ./run-tests.sh.
统计信息
- 总下载量: 106
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-16