{"id":20144216,"url":"https://github.com/quansitech/holiday","last_synced_at":"2026-05-13T09:02:43.303Z","repository":{"id":97656045,"uuid":"582236370","full_name":"quansitech/holiday","owner":"quansitech","description":"获取中国法定节假日","archived":false,"fork":false,"pushed_at":"2022-12-26T07:21:38.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T23:44:04.563Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quansitech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-26T07:10:17.000Z","updated_at":"2022-12-26T07:15:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"0f5afbb7-d8d0-4cc5-a74a-26d9b82caac1","html_url":"https://github.com/quansitech/holiday","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/quansitech/holiday","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fholiday","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fholiday/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fholiday/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fholiday/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quansitech","download_url":"https://codeload.github.com/quansitech/holiday/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fholiday/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32975183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T06:31:55.726Z","status":"ssl_error","status_checked_at":"2026-05-13T06:31:51.336Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T22:09:16.233Z","updated_at":"2026-05-13T09:02:43.288Z","avatar_url":"https://github.com/quansitech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## holiday\n```text\n获取中国法定假期日历\n```\n\n### 用法\n\n```shell\n# 下载项目\ngit clone https://github.com/quansitech/holiday.git\n\n# 执行命令，获取日历数据json\n# 年份范围 2010-下一年\n# 已经获取过的年份数据会写入文件，文件名为 /src/Calendar/year_calendar.json\n\nphp ./holiday.php 2023\n```\n\n#### 返回数据说明示例\n```php\n[\n  ...\n  {\n    \"date\": \"2022-12-26\",\n    \"year\": 2022,\n    \"month\": 12,\n    \"day\": 26,\n    \"status\": 0\n  }\n   ...\n]\n```\n\n\n| 名称              | 类型                | 说明                                  |\n|:----------------|:------------------|-------------------------------------|\n| date            | string            | 日期                                  |\n| year            | int               | 年                                   |\n| month           | int               | 月                                   |\n| day             | int               | 日                                   |\n| status          | int               | 假期标识：0普通工作日 1周末双休日 2需要补班的工作日 3法定节假日 |\n\n\n### 其它说明\n[日期数据来源](http://api.haoshenqi.top/holiday?date=2022)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquansitech%2Fholiday","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquansitech%2Fholiday","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquansitech%2Fholiday/lists"}