festivo-io/festivo-php
Composer 安装命令:
composer require festivo-io/festivo-php
包简介
Festivo PHP SDK (monorepo root stub)
README 文档
README
Official SDKs for the Festivo Public Holidays API - Access holiday data for 250+ countries with accurate UTC dates, regional variations, and city-level holidays.
Available SDKs
| Language | Package | Version | Documentation |
|---|---|---|---|
| JavaScript/TypeScript | @festivo-io/festivo-sdk | README | |
| Python | festivo-python | README | |
| PHP | festivo-io/festivo-php | README | |
| Go | festivo-sdk-go | README | |
| Ruby | festivo | README | |
| Java | io.github.festivo-io:festivo-sdk | README |
Features
- 🌍 250+ Countries - Comprehensive holiday coverage worldwide
- 📅 UTC Dates - Accurate timezone handling for global holidays
- 🏙️ City & Regional - Support for local holidays (Pro/Builder plans)
- ✅ Type Safe - Full type definitions in all supported languages
- ⚡ Modern - Built with current best practices for each language
- 🧪 Well Tested - Comprehensive test suites included
Quick Start
JavaScript/TypeScript
npm install @festivo-io/festivo-sdk
import { FestivoClient } from '@festivo-io/festivo-sdk'; const client = new FestivoClient({ apiKey: 'YOUR_API_KEY' }); const { holidays } = await client.getHolidays('US', 2026);
Python
pip install festivo-python
from festivo import FestivoClient client = FestivoClient(api_key='YOUR_API_KEY') result = client.get_holidays('US', 2026)
PHP
composer require festivo-io/festivo-php
use Festivo\FestivoClient; $client = new FestivoClient('YOUR_API_KEY'); $result = $client->getHolidays('US', 2026);
Go
go get github.com/festivo-io/festivo-sdk-go
import "github.com/festivo-io/festivo-sdk-go/festivo" client := festivo.NewClient("YOUR_API_KEY") result, _ := client.GetHolidays("US", 2026, nil)
Ruby
gem install festivo
require 'festivo' client = Festivo::Client.new('YOUR_API_KEY') result = client.get_holidays(country: 'US', year: 2026)
Java
Maven:
<dependency> <groupId>io.github.festivo-io</groupId> <artifactId>festivo-sdk</artifactId> <version>0.2.1</version> </dependency>
Gradle:
implementation 'io.github.festivo-io:festivo-sdk:0.2.1'
import io.festivo.FestivoClient; FestivoClient client = new FestivoClient("YOUR_API_KEY"); FestivoClient.HolidaysResponse holidays = client.getHolidays("US", 2026, null);
Documentation
Support
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - see LICENSE for details.
festivo-io/festivo-php 适用场景与选型建议
festivo-io/festivo-php 是一款 基于 Go 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 festivo-io/festivo-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 festivo-io/festivo-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2026-02-16