PHP code example of jakubboucek / safe-request
1. Go to this page and download the library: Download jakubboucek/safe-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/ */
jakubboucek / safe-request example snippets
$request = (new \Nette\Http\RequestFactory)->fromGlobals();
$request = (new \JakubBoucek\SafeRequest\SafeRequestFactory)->fromGlobals();
$user = $request->getUser();
$pass = $request->getPassword();
$url = $request->getUrlWithUserCredential();
echo $url; // http://user:[email protected]/