PHP code example of technodelight / php-cli-iterm-image-renderer

1. Go to this page and download the library: Download technodelight/php-cli-iterm-image-renderer 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/ */

    

technodelight / php-cli-iterm-image-renderer example snippets


#!/usr/bin/env php


use Technodelight\ITermImage\Image;
$image = Image::fromUri('https://picsum.photos/200', 200);
if (!empty($image)) {
    echo $image;
}