PHP code example of ksmz / nana

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

    

ksmz / nana example snippets


$response = Nana::get('https://httpbin.org/get');

$response->status() // 200
$response->json()->url // "https://httpbin.org/get"

$response->body() // Raw JSON string
$response->getHeaderLine('Date') // All calls are forwarded to the underlying PSR-7/Guzzle Response instance