This is a simple PHP class which parses request parameters. It handles JSON, bracket array notation, and standard values.
MIT - MIT License File: LICENSE
<?php
// Example request: https://example.com/?json={"test": 4}
// Parse the 'json' parameter from the request.
$req = new Request(array('json'));
echo "<pre>req->json: ". print_r($req->json, true) ."</pre>";
composer require somephp/request
Resource | Description |
---|---|
Liberal contribution friendly; Create merge request, describe why you want to MR. MR is peer reviewed.