{"id":36267846,"url":"https://github.com/jeffwhansen/distance-conversions","last_synced_at":"2026-01-11T08:42:02.255Z","repository":{"id":57711650,"uuid":"514452495","full_name":"jeffwhansen/distance-conversions","owner":"jeffwhansen","description":"Distance conversions between metric and english in PHP","archived":false,"fork":false,"pushed_at":"2024-04-29T19:41:37.000Z","size":30,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T22:39:56.247Z","etag":null,"topics":["conversions","distance","php"],"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/jeffwhansen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"jeffwhansen"}},"created_at":"2022-07-16T02:04:04.000Z","updated_at":"2025-06-30T20:30:01.000Z","dependencies_parsed_at":"2024-04-29T20:47:45.081Z","dependency_job_id":"7807c9f6-65bb-449f-adc6-604247f3360f","html_url":"https://github.com/jeffwhansen/distance-conversions","commit_stats":{"total_commits":19,"total_committers":3,"mean_commits":6.333333333333333,"dds":0.368421052631579,"last_synced_commit":"2f56c265af3cd2bf458f6af71de5675e22bf8445"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":"spatie/package-skeleton-php","purl":"pkg:github/jeffwhansen/distance-conversions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffwhansen%2Fdistance-conversions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffwhansen%2Fdistance-conversions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffwhansen%2Fdistance-conversions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffwhansen%2Fdistance-conversions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeffwhansen","download_url":"https://codeload.github.com/jeffwhansen/distance-conversions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffwhansen%2Fdistance-conversions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28298861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T08:21:30.231Z","status":"ssl_error","status_checked_at":"2026-01-11T08:21:26.882Z","response_time":60,"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":["conversions","distance","php"],"created_at":"2026-01-11T08:42:01.782Z","updated_at":"2026-01-11T08:42:02.247Z","avatar_url":"https://github.com/jeffwhansen.png","language":"PHP","funding_links":["https://github.com/sponsors/jeffwhansen"],"categories":[],"sub_categories":[],"readme":"\n# Distance conversions in PHP\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/jeffwhansen/distance-conversions.svg?style=flat-square)](https://packagist.org/packages/jeffwhansen/distance-conversions)\n[![Tests](https://github.com/jeffwhansen/distance-conversions/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/jeffwhansen/distance-conversions/actions/workflows/run-tests.yml)\n[![Total Downloads](https://img.shields.io/packagist/dt/jeffwhansen/distance-conversions.svg?style=flat-square)](https://packagist.org/packages/jeffwhansen/distance-conversions)\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require jeffwhansen/distance-conversions\n```\n\n## Usage\n\n```php\nDistance::fromMeters(\"5.55\")-\u003eto(Format::ENGLISH); //18-2.5\nDistance::fromFeet(\"18-2.5\")-\u003eto(Format::METRIC); //5.55 \nDistance::fromFeet(\"18-2.5\")-\u003eto(\"M.C\"); //5.55\nDistance::fromMeters(\"5.55\")-\u003eto(\"F' I-i\\\"\"); //18' 2-1/2\"\n```\n### Format String Constants\nYou can format your output using the following placeholders.  Any character you provide  that is in not in the list will be literally printed in the response.\n\n    const M = \"Meters\"; // 5\n    const C = \"Centimeters\"; // 55\n    const F = \"Feet\"; // 18\n    const I = \"Inches\"; //0-11\n    const p = \"Inches partial as decimal\"; //.25\n    const i = \"Inches partial as fraction\"; // 1/4\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Jeff Hansen](https://github.com/jeffwhansen)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffwhansen%2Fdistance-conversions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffwhansen%2Fdistance-conversions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffwhansen%2Fdistance-conversions/lists"}