PHP code example of somephp / request
1. Go to this page and download the library: Download somephp/request library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
somephp / request example snippets
// 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>";