PHP code example of glhd / ansipants

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

    

glhd / ansipants example snippets


ansi("\e[1mHello💥 \e[3mwo\e[0mrld")
  ->append(" 🥸🥸🥸")
  ->padLeft(100)
  ->wordwrap();

Str::of("\e[1mHello💥 \e[3mwo\e[0mrld")->ansi();
// Or
str("\e[1mHello💥 \e[3mwo\e[0mrld")->ansi();