PHP code example of extphp / dottp

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

    

extphp / dottp example snippets




use ExtPHP\Dottp\Dottp;

$client = new Dottp();
$response = $client->get('https://api.example.org/api/v1/foo');

echo $response->get('foo.bar');

// or you can use the very simple syntax
echo Dottp::get('https://api.example.org/api/v1/foo')->get('foo.bar');
bash
php vendor/bin/phpunit