{"id":18794566,"url":"https://github.com/effectra/clock","last_synced_at":"2025-09-19T06:33:10.265Z","repository":{"id":192611152,"uuid":"655729012","full_name":"effectra/clock","owner":"effectra","description":"This is a PHP class named `Clock` that implements the `Psr\\Clock\\Clock` interface. It provides a simple and standard way to retrieve the current time and timestamp in PHP applications.","archived":false,"fork":false,"pushed_at":"2023-06-19T13:36:50.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-09T19:48:09.248Z","etag":null,"topics":["clock","php","psr"],"latest_commit_sha":null,"homepage":"","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/effectra.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}},"created_at":"2023-06-19T13:31:27.000Z","updated_at":"2023-06-19T13:34:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1926894-4fec-4670-a361-1d0fb7fe7191","html_url":"https://github.com/effectra/clock","commit_stats":null,"previous_names":["effectra/clock"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/effectra/clock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fclock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fclock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fclock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fclock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/effectra","download_url":"https://codeload.github.com/effectra/clock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fclock/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266384271,"owners_count":23921013,"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-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["clock","php","psr"],"created_at":"2024-11-07T21:29:48.072Z","updated_at":"2025-09-19T06:33:10.135Z","avatar_url":"https://github.com/effectra.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Effectra\\Clock\n\nThis is a PHP class named `Effectra\\Clock` that implements the `Psr\\Clock\\Clock` interface. It provides a simple and standard way to retrieve the current time and timestamp in PHP applications.\n\n## Features\n\n- Implements the `Psr\\Clock\\ClockInterface` interface\n- Provides the `now()` method to retrieve the current time as a `DateTimeImmutable` object\n- Offers the `timestamp()` method to retrieve the current timestamp as an integer\n\n## Usage\n\n```php\n// Create a new instance of the Clock class\n$clock = new \\Effectra\\Clock\\Clock();\n\n// Get the current time as a DateTimeImmutable object\n$currentDateTime = $clock-\u003enow();\n\n// Get the current timestamp as an integer\n$currentTimestamp = $clock-\u003etimestamp();\n```\n\n## Contributing\n\nContributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue on the GitHub repository.\n\n## License\n\nThis package is open-source and available under the [MIT License](https://opensource.org/licenses/MIT).\n\"# clock\" \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feffectra%2Fclock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feffectra%2Fclock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feffectra%2Fclock/lists"}