{"id":16770394,"url":"https://github.com/phptcloud/is-day-off","last_synced_at":"2025-03-17T02:31:29.423Z","repository":{"id":57040867,"uuid":"305199775","full_name":"PHPTCloud/is-day-off","owner":"PHPTCloud","description":"PHP SDK for isdayoff.ru","archived":false,"fork":false,"pushed_at":"2024-03-17T23:28:03.000Z","size":34,"stargazers_count":26,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T16:47:21.315Z","etag":null,"topics":["isdayoff","php","sdk"],"latest_commit_sha":null,"homepage":"https://isdayoff.ru/","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/PHPTCloud.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":"2020-10-18T21:27:45.000Z","updated_at":"2025-02-20T14:14:52.000Z","dependencies_parsed_at":"2024-01-13T03:56:56.423Z","dependency_job_id":"257deeec-0ff4-4ee0-a74d-08fb86f4c4ef","html_url":"https://github.com/PHPTCloud/is-day-off","commit_stats":{"total_commits":28,"total_committers":2,"mean_commits":14.0,"dds":0.25,"last_synced_commit":"e93f3d85fe57087b60d9bf26f4160404d3e2d8eb"},"previous_names":["phptcloud/is-day-off"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPTCloud%2Fis-day-off","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPTCloud%2Fis-day-off/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPTCloud%2Fis-day-off/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPTCloud%2Fis-day-off/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PHPTCloud","download_url":"https://codeload.github.com/PHPTCloud/is-day-off/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841125,"owners_count":20356440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["isdayoff","php","sdk"],"created_at":"2024-10-13T06:24:03.988Z","updated_at":"2025-03-17T02:31:29.165Z","avatar_url":"https://github.com/PHPTCloud.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IsDayOf\n\n[![Latest Version](https://img.shields.io/badge/version-2.0.1-blue)](https://packagist.org/packages/phptcloud/isdayoff-sdk)\n[![Downloads](https://img.shields.io/badge/downloads-16k-blue)](https://packagist.org/packages/phptcloud/isdayoff-sdk)\n[![Documentation](https://img.shields.io/badge/docs-yes-blue)](https://github.com/PHPTCloud/IsDayOff/tree/master/examples)\n\nPHP SDK for [isdayof.ru](https://isdayoff.ru)\n\n#### Instalation\n```bash\ncomposer require phptcloud/isdayoff-sdk\n```\n\n\n#### After install\nYou can check the work of the scripts in the \"Examples\" folder. ;)\n\n#### Simple example\n\n```php\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\nuse isDayOff\\Client\\IsDayOff;\n\n$client = new IsDayOff();\n\n$date = new DateTime('now');\n$result = $client-\u003edate()-\u003eisDayOff($date);\n\nif($result) {\n    echo 'is day off.';\n} else {\n    echo 'working day.';\n}\n```\n\n#### Filters\n\n\n```php\n// Countries\nisDayOff\\Filters\\UkraineFilter\nisDayOff\\Filters\\RussianFilter\nisDayOff\\Filters\\KazakhstanFilter\nisDayOff\\Filters\\BelorusFilter\nisDayOff\\Filters\\UnitedStatesFilter\nisDayOff\\Filters\\UzbekistanFilter\nisDayOff\\Filters\\TurkeyFilter\n\n// Additional\nisDayOff\\Filters\\CovidFilter\nisDayOff\\Filters\\PreHolidayFilter\n```\n\n#### Filters examples\n\n```php\n/**\n * New filter collection\n */\n$filters = new FiltersCollection();\n$filters-\u003eaddOne(new UkraineFilter());\n\n$client-\u003edate()-\u003esetFilters($filters);\n$date = new DateTime('2019/01/01');\n\n$result = $client-\u003edate()-\u003egetDataPerMonth($date);\n\nprint_r($result);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphptcloud%2Fis-day-off","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphptcloud%2Fis-day-off","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphptcloud%2Fis-day-off/lists"}