PHP code example of nyholm / why

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

    

nyholm / why example snippets


$why = new \Nyholm\Why\ReasonGenerator();
echo $why->generate(); // Stupid question!
echo $why->generate(); // To please the good programmer.
echo $why->generate(); // For the love to some product manager.
echo $why->generate(); // The young terrified engineer helped some rich and good terrified and very smart and rich kid.
echo $why->generate(); // The devil made me do it.
echo $why->generate(); // The tall tall programmer insisted on it.