PHP code example of vdhicts / http-query-builder

1. Go to this page and download the library: Download vdhicts/http-query-builder 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/ */

    

vdhicts / http-query-builder example snippets


use Vdhicts\HttpQueryBuilder\Builder;

$builder = (new Builder())
    ->add('filter', 'a:1')
    ->add('filter', 'b:2');
echo $builder; // filter=a%3A1&filter=b%3A2