{"id":15828242,"url":"https://github.com/manchenkoff/timer-helper","last_synced_at":"2025-08-13T03:17:05.327Z","repository":{"id":62523271,"uuid":"188079335","full_name":"manchenkoff/timer-helper","owner":"manchenkoff","description":"'Timer' is a class to help build time interval value in seconds by object-oriented style","archived":false,"fork":false,"pushed_at":"2024-01-19T10:25:11.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-14T13:47:18.550Z","etag":null,"topics":["datetime","interval","php","php-helper","time","timestamp"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/manchenkov/timer","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/manchenkoff.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","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":"2019-05-22T16:53:11.000Z","updated_at":"2024-01-19T10:23:12.000Z","dependencies_parsed_at":"2024-10-05T10:27:25.530Z","dependency_job_id":"6fcd3778-ad8e-4ea1-9f22-42ba4e033ffa","html_url":"https://github.com/manchenkoff/timer-helper","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/manchenkoff/timer-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manchenkoff%2Ftimer-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manchenkoff%2Ftimer-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manchenkoff%2Ftimer-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manchenkoff%2Ftimer-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manchenkoff","download_url":"https://codeload.github.com/manchenkoff/timer-helper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manchenkoff%2Ftimer-helper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270173393,"owners_count":24539590,"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-13T02:00:09.904Z","response_time":66,"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":["datetime","interval","php","php-helper","time","timestamp"],"created_at":"2024-10-05T10:22:31.998Z","updated_at":"2025-08-13T03:17:05.274Z","avatar_url":"https://github.com/manchenkoff.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Timer\n\n[![Latest Stable Version](http://poser.pugx.org/manchenkov/timer/v)](https://packagist.org/packages/manchenkov/timer)\n[![Total Downloads](http://poser.pugx.org/manchenkov/timer/downloads)](https://packagist.org/packages/manchenkov/timer)\n[![License](http://poser.pugx.org/manchenkov/timer/license)](https://packagist.org/packages/manchenkov/timer)\n[![PHP Version Require](http://poser.pugx.org/manchenkov/timer/require/php)](https://packagist.org/packages/manchenkov/timer)\n\n**Timer** is a class to help build time interval value in seconds by object-oriented style\n\n## Installation \n\nYou have to run following command to add a dependency to your project\n\n```bash\ncomposer require manchenkov/timer\n```\n\nor you can add this line to `require` section of `composer.json`\n\n```\n\"manchenkov/timer\": \"*\"\n```\n\n## Usage\n\n```php\nuse Manchenkov\\Timer\\Timer;\n\n$timer = Timer::get()-\u003ehours(5)-\u003eminutes(10)-\u003eseconds(34);\n\n$intervalValue = $timer-\u003easNumber(); // \u003cint\u003e -\u003e 18634 = 34 + (10 * 60) + (5 * 3600)\n\n$intervalString = $timer-\u003easString(); // \u003cstring\u003e -\u003e 05:10:34\n// or\n$intervalString = (string)$timer; // \u003cstring\u003e -\u003e 05:10:34\n```\n\n## Testing\n\nTo run test cases you should execute the following command\n\n```bash\n./vendor/bin/phpunit tests --testdox\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanchenkoff%2Ftimer-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanchenkoff%2Ftimer-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanchenkoff%2Ftimer-helper/lists"}