{"id":24663608,"url":"https://github.com/brokeyourbike/resolve-uri-php","last_synced_at":"2026-05-21T07:12:13.907Z","repository":{"id":45490943,"uuid":"418952734","full_name":"brokeyourbike/resolve-uri-php","owner":"brokeyourbike","description":"Trait for resolving URI","archived":false,"fork":false,"pushed_at":"2023-05-20T11:42:51.000Z","size":36,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-27T21:38:44.389Z","etag":null,"topics":["hacktoberfest","php","php8","rest-api","uri"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brokeyourbike.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}},"created_at":"2021-10-19T14:09:46.000Z","updated_at":"2023-12-10T00:52:31.000Z","dependencies_parsed_at":"2022-07-15T05:30:28.419Z","dependency_job_id":null,"html_url":"https://github.com/brokeyourbike/resolve-uri-php","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokeyourbike%2Fresolve-uri-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokeyourbike%2Fresolve-uri-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokeyourbike%2Fresolve-uri-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokeyourbike%2Fresolve-uri-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brokeyourbike","download_url":"https://codeload.github.com/brokeyourbike/resolve-uri-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244762556,"owners_count":20506296,"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":["hacktoberfest","php","php8","rest-api","uri"],"created_at":"2025-01-26T05:15:27.019Z","updated_at":"2026-05-21T07:12:08.880Z","avatar_url":"https://github.com/brokeyourbike.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# resolve-uri\n\n[![Latest Stable Version](https://img.shields.io/github/v/release/brokeyourbike/resolve-uri-php)](https://github.com/brokeyourbike/resolve-uri-php/releases)\n[![Total Downloads](https://poser.pugx.org/brokeyourbike/resolve-uri/downloads)](https://packagist.org/packages/brokeyourbike/resolve-uri)\n[![Maintainability](https://api.codeclimate.com/v1/badges/3df6e54f7cf05830ded9/maintainability)](https://codeclimate.com/github/brokeyourbike/resolve-uri-php/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/3df6e54f7cf05830ded9/test_coverage)](https://codeclimate.com/github/brokeyourbike/resolve-uri-php/test_coverage)\n\nTrait for resolving URI\n\n## Installation\n\n```bash\ncomposer require brokeyourbike/resolve-uri\n```\n\n## Usage\n\n```php\nuse BrokeYourBike\\ResolveUri\\ResolveUriTrait;\n\nclass APIClient\n{\n    use ResolveUriTrait;\n\n    public function fetchProduct(string $productId)\n    {\n        $uri = $this-\u003eresolveUriFor('https://example.com', \"products/{$productId}\");\n    }\n}\n```\n\n## Why\nResolve URI when `base_url` is not defined in HTTP client.\n\n## Authors\n- [Ivan Stasiuk](https://github.com/brokeyourbike) | [Twitter](https://twitter.com/brokeyourbike) | [LinkedIn](https://www.linkedin.com/in/brokeyourbike) | [stasi.uk](https://stasi.uk)\n\n## License\n[Mozilla Public License v2.0](https://github.com/brokeyourbike/resolve-uri-php/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrokeyourbike%2Fresolve-uri-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrokeyourbike%2Fresolve-uri-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrokeyourbike%2Fresolve-uri-php/lists"}