PHP code example of kapitancho / walnut-lang-cli-adapter

1. Go to this page and download the library: Download kapitancho/walnut-lang-cli-adapter 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/ */

    

kapitancho / walnut-lang-cli-adapter example snippets

bash
php -f cli.php demo-cli 1 2
# Output: 3
bash
php -f cli.php demo-cli 3 cats
# Output: Invalid parameters