{"id":22290503,"url":"https://github.com/fluffy-critter/php-urljoin","last_synced_at":"2025-07-28T23:31:31.839Z","repository":{"id":62498371,"uuid":"70959806","full_name":"fluffy-critter/php-urljoin","owner":"fluffy-critter","description":"A library function for joining a base URL and a target URL into a an absolute URL","archived":false,"fork":false,"pushed_at":"2024-08-20T23:23:14.000Z","size":31,"stargazers_count":15,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-08T07:45:11.550Z","etag":null,"topics":["php","php-urljoin","url-parsing"],"latest_commit_sha":null,"homepage":null,"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/fluffy-critter.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-10-15T01:56:26.000Z","updated_at":"2024-09-21T09:51:18.000Z","dependencies_parsed_at":"2022-11-02T12:00:46.737Z","dependency_job_id":null,"html_url":"https://github.com/fluffy-critter/php-urljoin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffy-critter%2Fphp-urljoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffy-critter%2Fphp-urljoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffy-critter%2Fphp-urljoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffy-critter%2Fphp-urljoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluffy-critter","download_url":"https://codeload.github.com/fluffy-critter/php-urljoin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227962265,"owners_count":17847912,"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":["php","php-urljoin","url-parsing"],"created_at":"2024-12-03T17:13:09.276Z","updated_at":"2024-12-03T17:13:09.961Z","avatar_url":"https://github.com/fluffy-critter.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-urljoin\nA PHP library function for joining a base URL and a potentially-relative target URL into an absolute URL\n\nWhy isn't this in the PHP standard library? WHO KNOWS.\n\nInstallation:\n\n* Direct install: just pull `src/urljoin.php` into your project\n* [Composer](https://packagist.org/packages/busybee/urljoin): `composer require busybee/urljoin`\n\nusage:\n\n    urljoin($base_url, $other_url);\n\nSee tests.php for test suite, as well as expected inputs and outputs. (Doing\nthis correctly is *way* more complicated thing than you'd think!) This\nimplementation strives for accuracy and, in cases of ambiguity (such as `../`\nstack underflow and empty path components), defers to Python's standard library\nbehavior (as implemented by `urlparse.urljoin`).\n\nOther things that you might know this as:\n\n* Relative path concatenation\n* A function for converting a relative path to an absolute URL given a base URL\n* `rel2abs` and `relativeToAbsolute` (common names for this sort of function)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffy-critter%2Fphp-urljoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluffy-critter%2Fphp-urljoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffy-critter%2Fphp-urljoin/lists"}