{"id":16552605,"url":"https://github.com/postmodern/uri-query_params","last_synced_at":"2025-10-28T19:30:24.817Z","repository":{"id":1039637,"uuid":"869317","full_name":"postmodern/uri-query_params","owner":"postmodern","description":"Access the query parameters of a URI, just like $_GET in PHP.","archived":false,"fork":false,"pushed_at":"2024-01-25T10:06:37.000Z","size":104,"stargazers_count":16,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-01T22:03:38.595Z","etag":null,"topics":["core-ext","params","query-params","query-params-parsing","ruby","uri"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/postmodern.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2010-08-29T00:25:56.000Z","updated_at":"2023-04-25T06:01:00.000Z","dependencies_parsed_at":"2024-01-25T11:14:57.864Z","dependency_job_id":"acdf3425-f953-48b5-a682-5d10622ec227","html_url":"https://github.com/postmodern/uri-query_params","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmodern%2Furi-query_params","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmodern%2Furi-query_params/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmodern%2Furi-query_params/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmodern%2Furi-query_params/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postmodern","download_url":"https://codeload.github.com/postmodern/uri-query_params/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219859010,"owners_count":16556038,"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":["core-ext","params","query-params","query-params-parsing","ruby","uri"],"created_at":"2024-10-11T19:45:29.118Z","updated_at":"2025-10-28T19:30:24.441Z","avatar_url":"https://github.com/postmodern.png","language":"Ruby","readme":"# URI query_params\n\n* [Source](https://github.com/postmodern/uri-query_params)\n* [Issues](https://github.com/postmodern/uri-query_params/issues)\n* [Documentation](http://rubydoc.info/gems/uri-query_params/frames)\n\n## Description\n\nAllows access to the query component of the URI as a Hash. This is similar\nto `$_GET` from PHP, except available on any Ruby URI object.\n\n## Examples\n\nInspecting the URI query_params:\n\n```ruby\nrequire 'uri/query_params'\n\nurl = URI('http://www.google.com/search?hl=en\u0026client=firefox-a\u0026rls=org.mozilla%3Aen-US%3Aofficial\u0026hs=1HY\u0026q=bob+ross\u0026btnG=Search')\nurl.query_params\n# =\u003e {\"btnG\"=\u003e\"Search\", \"hs\"=\u003e\"1HY\", \"rls\"=\u003e\"org.mozilla:en-US:official\", \"client\"=\u003e\"firefox-a\", \"hl\"=\u003e\"en\", \"q\"=\u003e\"bob+ross\"}\n\nurl.query_params['q']\n# =\u003e \"bob+ross\"\n```\n\nSetting the URI query_params:\n\n```ruby\nurl.query_params['q'] = 'Upright Citizens Brigade'\nurl.to_s\n# =\u003e \"http://www.google.com/search?btnG=Search\u0026hs=1HY\u0026rls=org.mozilla:en-US:official\u0026client=firefox-a\u0026hl=en\u0026q=Upright%20Citizens%20Brigade\"\n```\n\nParsing URI query_params embedded within the Fragment Identifier:\n\n```ruby\nurl = URI('https://twitter.com/#!/download?lang=en\u0026logged_out=1')\nURI(url.fragment).query_params\n# =\u003e {\"logged_out\"=\u003e\"1\", \"lang\"=\u003e\"en\"}\n```\n\n## Requirements\n\n* [ruby] \u003e= 2.0.0\n\n## Install\n\n```shell\n$ gem install uri-query_params\n```\n\n## License\n\nSee {file:LICENSE.txt} for license information.\n\n[ruby]: https://www.ruby-lang.org/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmodern%2Furi-query_params","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostmodern%2Furi-query_params","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmodern%2Furi-query_params/lists"}