{"id":8068,"date":"2015-11-23T18:45:39","date_gmt":"2015-11-23T18:45:39","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/23\/slim-php-and-get-parameters-open-source-projects-slimphp-slim\/"},"modified":"2022-08-30T15:03:02","modified_gmt":"2022-08-30T15:03:02","slug":"slim-php-and-get-parameters-open-source-projects-slimphp-slim","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/23\/slim-php-and-get-parameters-open-source-projects-slimphp-slim\/","title":{"rendered":"Slim PHP and GET Parameters-open source projects slimphp\/Slim"},"content":{"rendered":"<p>I&#8217;m playing with Slim PHP as a framework for a RESTful API, and so far it&#8217;s great. Super easy to work with, but I do have one question I can&#8217;t find the answer to. How do I grab GET params from the URL in Slim PHP?<\/p>\n<p>For example, if I wanted to use the following:<\/p>\n<pre><code>http:\/\/api.example.com\/dataset\/schools?zip=99999&amp;radius=5\n<\/code><\/pre>\n<p>A case of the Mondays? Am I overthinking it? Thanks in advance!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m playing with Slim PHP as a framework for a RESTful API, and so far it&#8217;s great. Super easy to work with, but I do have one question I can&#8217;t find the answer to. How do I grab GET params from the URL in Slim PHP? For example, if I wanted to use the following: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8068","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=8068"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8068\/revisions"}],"predecessor-version":[{"id":8650,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8068\/revisions\/8650"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=8068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=8068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=8068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}