PHP code example of legionth / indentation-react

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

    

legionth / indentation-react example snippets


$indenter = new Indenter($inputStream);
// or
$indenter = new Indenter($inputStream, $beginningString);

$ cat words.txt | php examples/indentInput.php

$ php examples/indentInput.php

$ cat words.txt | php examples/indentInput.php --tab 


$ cat words.txt | php examples/indentInput.php --spaces 2