{"id":15308088,"url":"https://github.com/ivantcholakov/http_build_url","last_synced_at":"2025-04-15T00:54:56.348Z","repository":{"id":11243627,"uuid":"13640173","full_name":"ivantcholakov/http_build_url","owner":"ivantcholakov","description":"PHP fallback function http_build_url()","archived":false,"fork":false,"pushed_at":"2015-06-17T01:57:39.000Z","size":236,"stargazers_count":10,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-15T00:54:50.508Z","etag":null,"topics":["php"],"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/ivantcholakov.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":"2013-10-17T05:48:26.000Z","updated_at":"2023-11-28T10:26:55.000Z","dependencies_parsed_at":"2022-09-14T21:00:29.853Z","dependency_job_id":null,"html_url":"https://github.com/ivantcholakov/http_build_url","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivantcholakov%2Fhttp_build_url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivantcholakov%2Fhttp_build_url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivantcholakov%2Fhttp_build_url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivantcholakov%2Fhttp_build_url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivantcholakov","download_url":"https://codeload.github.com/ivantcholakov/http_build_url/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986280,"owners_count":21194025,"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"],"created_at":"2024-10-01T08:13:49.620Z","updated_at":"2025-04-15T00:54:56.332Z","avatar_url":"https://github.com/ivantcholakov.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP fallback function http_build_url()\n======================================\n\nFor servers without pecl_http package installed.\n\nSee http://php.net/manual/en/function.http-build-url.php\n\nBased on the original C code from pecl_http-1.7.6  \nhttp://git.php.net/?p=pecl/http/pecl_http.git;a=blob;f=php_http_url_api.h;h=940db8e61e68e1a544896a691079ad33c5b633ff;hb=b84c1c206944586e218e57a864ab9671194a10cf  \nhttp://git.php.net/?p=pecl/http/pecl_http.git;a=blob;f=http_url_api.c;h=8a70b0f2fb18b3435110b436b7f1f68023cafb15;hb=b84c1c206944586e218e57a864ab9671194a10cf\n\nSome snippets by Sébastien Corne have been used.  \nhttps://github.com/Seebz/Snippets/blob/master/php/http_build_url.php\n\nVersion: 1.7.6  \nAuthor: Ivan Tcholakov \u003civantcholakov@gmail.com\u003e, 2014  \nLicense: The MIT License, http://opensource.org/licenses/MIT\n\nUsage:  \nPlace this file on a suitable directory of your PHP system.  \nInside a common bootstrap file within your system insert the following piece of code:  \n\n```php\nif (!function_exists('http_build_str') || !function_exists('http_build_url')) {\n    require dirname(__FILE__).'/write/your/relative/path/here/http_build_url.php';\n}\n```\n\nAfter that, the functions http_build_url() and http_build_str() would be callable.  \nA quick test:\n```php\necho http_build_url();\n```\n\nFor testing this fallback implementation, place the file http_build_url_test.php\non the web-server too, and open it with a browser. Don't forget to remove it when\nit is no longer needed.\n\nLive test demo: http://iridadesign.com/starter-public-edition-4/www/non-mvc/http_build_url_test.php\n\n**An important note:** Don't use host autodetection (or more generally base url autodetection)\nimplemented by this function, it relies first on $_SERVER['HTTP_HOST'].  \nSee http://carlos.bueno.org/2008/06/host-header-injection.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivantcholakov%2Fhttp_build_url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivantcholakov%2Fhttp_build_url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivantcholakov%2Fhttp_build_url/lists"}