PHP code example of versionable / prospect

1. Go to this page and download the library: Download versionable/prospect 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/ */

    

versionable / prospect example snippets


      use \Versionable\Prospect\Request\Request;
    use \Versionable\Prospect\Url\Url;
    use \Versionable\Prospect\Adapter\Curl;
    use \Versionable\Prospect\Client\Client;
    use \Versionable\Prospect\Response\Response;
  
    $request = new Request(new Url('http://versionable.co.uk/'));
    $client = new Client(new Curl());
  
    $response = $client->send($request, new Response());