PHP code example of efrane / conditional-process

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

    

efrane / conditional-process example snippets


$process = new ConditionalProcess('cat README.md', new FileExists('README.md'));

$process->execute($readmeText);

// $readmeText will contain the contents of README.md if that file exists