{"id":19197007,"url":"https://github.com/jitesoft/php-clock","last_synced_at":"2025-08-02T03:38:08.822Z","repository":{"id":183914013,"uuid":"671005260","full_name":"jitesoft/php-clock","owner":"jitesoft","description":"PSR-20 clock implementation.","archived":false,"fork":false,"pushed_at":"2023-07-26T10:26:29.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-27T23:48:19.252Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jitesoft.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}},"created_at":"2023-07-26T10:20:45.000Z","updated_at":"2023-07-26T10:21:33.000Z","dependencies_parsed_at":"2023-07-26T11:34:33.355Z","dependency_job_id":null,"html_url":"https://github.com/jitesoft/php-clock","commit_stats":null,"previous_names":["jitesoft/php-clock"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jitesoft/php-clock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fphp-clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fphp-clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fphp-clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fphp-clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jitesoft","download_url":"https://codeload.github.com/jitesoft/php-clock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fphp-clock/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268331265,"owners_count":24233216,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-09T12:15:15.524Z","updated_at":"2025-08-02T03:38:08.729Z","avatar_url":"https://github.com/jitesoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clock\n\nImplementation of the [PSR-20](https://www.php-fig.org/psr/psr-20/) interface for Clock in php.\n\n## Why\n\nWhen working with time in php, it's common to either create a new DateTime (or preferably DateTimeImmutable) object\nor to use the `time()` function.  \nThis makes testing a bit hard, seeing you would have to mock the `time` global function (which can be a pain) or do some\nblack magick to fake the DateTimeImmutable class.\n\n## What more?\n\nIn the first implementation of this package, the only thing implemented is the `now` function, which returns\na `DateTimeImmutable` object.  \nIn the future, more functionality might be added.\n \n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitesoft%2Fphp-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjitesoft%2Fphp-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitesoft%2Fphp-clock/lists"}