1. Go to this page and download the library: Download ixnode/php-cli-image 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/ */
ixnode / php-cli-image example snippets
use Ixnode\PhpCliImage\CliImage;
$file = new File('path/to/image');
$width = 80;
$image = new CliImage($file);
print $image->getAsciiString($width);
bash
composer
bash
vendor/bin/php-cli-image -V
bash
php-cli-image 0.1.0 (03-07-2023 01:17:26) - Björn Hempel <[email protected]>
bash
vendor/bin/php-cli-image ci vendor/ixnode/php-cli-image/docs/image/world-map.png
bash
git clone [email protected]:ixnode/php-cli-image.git && cd php-cli-image
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.