PHP code example of djinn-dev / php-fig

1. Go to this page and download the library: Download djinn-dev/php-fig 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/ */

    

djinn-dev / php-fig example snippets




declare(strict_types=1);

use DjinnDev\Psr17\UriFactory;

$uri = UriFactory::getInstance()->createUri('https://djinn.dev/');
$target = (string) $uri->withPath('test');

// $target = 'https://djinn.dev/test'
bash
composer