{"id":29358247,"url":"https://github.com/labrodev/time-converter","last_synced_at":"2026-03-27T02:30:00.533Z","repository":{"id":301985449,"uuid":"1010608584","full_name":"labrodev/time-converter","owner":"labrodev","description":" PHP 8.1+ utility library that provides static helper methods to convert between seconds, minutes, and hours — built for simplicity and performance.","archived":false,"fork":false,"pushed_at":"2025-06-29T13:02:53.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T01:15:14.213Z","etag":null,"topics":["composer-library","composer-package","datetime","labrodev","php","php-converter","php-library","php-package","php-time","php-utility","php-utils","php8","time-converter"],"latest_commit_sha":null,"homepage":"","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/labrodev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.MD","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}},"created_at":"2025-06-29T12:44:48.000Z","updated_at":"2025-06-29T13:04:25.000Z","dependencies_parsed_at":"2025-06-30T01:25:22.663Z","dependency_job_id":null,"html_url":"https://github.com/labrodev/time-converter","commit_stats":null,"previous_names":["labrodev/time-converter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/labrodev/time-converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labrodev%2Ftime-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labrodev%2Ftime-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labrodev%2Ftime-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labrodev%2Ftime-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labrodev","download_url":"https://codeload.github.com/labrodev/time-converter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labrodev%2Ftime-converter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264403827,"owners_count":23602623,"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":["composer-library","composer-package","datetime","labrodev","php","php-converter","php-library","php-package","php-time","php-utility","php-utils","php8","time-converter"],"created_at":"2025-07-09T06:09:21.195Z","updated_at":"2026-03-27T02:29:55.513Z","avatar_url":"https://github.com/labrodev.png","language":"PHP","readme":"# PHP Time Converter\n\n**Labrodev\\TimeConverter** is a strict PHP 8.1+ utility library that provides static helper methods to convert between seconds, minutes, and hours — built for simplicity and performance.\n\n## Features\n\n- Convert seconds to minutes\n- Convert hours and minutes into raw minute count\n- Convert float-based minutes into integer format\n- Convert hours (as float) into total minutes\n- Fully static and type-safe class\n- Lightweight, dependency-free implementation\n- Includes PHPUnit and PHPStan support for testing and analysis\n\n## Installation\n\n```\ncomposer require labrodev/time-converter\n```\n\n## Usage\n\n```php\nuse Labrodev\\TimeConverter\\Converter;\n\n// Convert seconds to minutes\nConverter::secondsToMinutes(180); // 3.0\n\n// Convert hours and minutes to raw minutes\nConverter::timeToRawMinutes(2, 30); // 150\n\n// Convert float minutes to integer\nConverter::floatMinutesToInt(12.7); // 13\n\n// Convert hours to minutes\nConverter::hoursToMinutes(1.5); // 90\n```\n\n## Testing\n\nTo run tests:\n\n```\ncomposer install\ncomposer test\n```\n\n## Static Analysis\n\nTo run static analysis using PHPStan:\n\n```\ncomposer install\ncomposer analyse\n```\n\n\u003e Configuration is located in `phpstan.neon.dist`\n\n## Security\n\nIf you discover a security vulnerability within this package, **please contact us immediately at [contact@labrodev.com](mailto:contact@labrodev.com)**. All security-related issues will be handled privately and promptly.\n\n## Credits\n\nThis package is maintained by **Labrodev** — Laravel \u0026 PHP development studio.  \n[https://github.com/labrodev](https://github.com/labrodev)\n\n## Feedback\n\nIf you have any questions, suggestions, or have found an error — feel free to open an issue or contact us:  \n**contact@labrodev.com**\n\n**License:** MIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabrodev%2Ftime-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabrodev%2Ftime-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabrodev%2Ftime-converter/lists"}