1. Go to this page and download the library: Download web/url-search-params 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/ */
web / url-search-params example snippets
use Web\URLSearchParams\URLSearchParams;
$usp = new URLSearchParams();
$usp = new URLSearchParams('name=foo&id=123&age=12');
$usp = new URLSearchParams('?name=foo&id=123&age=12');
$usp = new URLSearchParams([['name', 'foo'], ['id', 123], ['age', 12]]);
$usp = new URLSearchParams(['name'=> 'foo', 'id'=> 123, 'age'=> 12]);