{"id":15917493,"url":"https://github.com/takuya/php-timerange-overlap","last_synced_at":"2026-03-12T14:39:43.416Z","repository":{"id":65049933,"uuid":"581282669","full_name":"takuya/php-timerange-overlap","owner":"takuya","description":"check time range has overlapping .","archived":false,"fork":false,"pushed_at":"2026-02-21T11:29:02.000Z","size":428,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-21T17:47:10.702Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takuya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-22T18:56:47.000Z","updated_at":"2026-02-21T11:29:05.000Z","dependencies_parsed_at":"2026-01-16T15:06:44.140Z","dependency_job_id":null,"html_url":"https://github.com/takuya/php-timerange-overlap","commit_stats":{"total_commits":177,"total_committers":1,"mean_commits":177.0,"dds":0.0,"last_synced_commit":"fe61af861715780284d1fead3d70767d231f7a73"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/takuya/php-timerange-overlap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-timerange-overlap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-timerange-overlap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-timerange-overlap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-timerange-overlap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuya","download_url":"https://codeload.github.com/takuya/php-timerange-overlap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-timerange-overlap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30428518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"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-10-06T18:10:59.490Z","updated_at":"2026-03-12T14:39:43.400Z","avatar_url":"https://github.com/takuya.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TimeRange Overlapping Checker.\n\n![](https://github.com/takuya/php-timerange-overlap/workflows/main/badge.svg)\n\nThis library for checking Events/Schedule TimeRange have Overlapping.\n\n## Check has overlapping.\n\n## Usage\n\n```php\nuse Takuya\\PhpTimeOverlap\\TimeRange;\n$a = new TimeRange(new DateTime( '22:22' ),new DateTime( '23:22' ));\n$b = new TimeRange(new DateTime( '22:44' ),new DateTime( '23:44' ));\n\n## check time overlap\n$a-\u003ehas_overlapping($b); // =\u003e true\n```\n\nOther checking like this.\n\n```php\n\n$a-\u003ebefore($b);\n$a-\u003eoverlapped($b);\n$a-\u003eduring($b);\n$a-\u003eoverlaps($b);\n$a-\u003eafter($b); \n$a-\u003econtains($b);\n$a-\u003esame($b);\n```\n\n## Supported patterns.\n\nI named overlapping patterns like this.\n\n\u003cimg src='https://github.com/takuya/php-timerange-overlap/raw/master/docs/images/names-with-equal.png' maxwidth='500' /\u003e\n\nEQUALS(ex A.end==B.start ) patterns are excluded intentionally. If equal ex.`A-\u003eend == B-\u003estart` compared,It will be\noverlapping. Comparing equals \"22:22-**22:25**\" to \"**22:25**-22:27\" , do minus explicitly ( `-1 sec`  before comparing)\n.\n\n## Installation\n\nfrom github\n\n```shell\ncomposer config repositories.'php-timerange-overlap' \\\n         vcs https://github.com/takuya/php-timerange-overlap\ncomposer require takuya/php-timerange-overlap:master\ncomposer install \n```\n\nfrom packgist\n\n```shell\ncomposer require takuya/php-timerange-overlap\n```\n\n## Testing\n\n```shell\ngit clone https://github.com/takuya/php-timerange-overlap\ncd php-timerange-overlap\ncomposer install \nvendor/bin/phpunit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fphp-timerange-overlap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuya%2Fphp-timerange-overlap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fphp-timerange-overlap/lists"}