PHP code example of maxleaver / php-haiku
1. Go to this page and download the library: Download maxleaver/php-haiku 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/ */
maxleaver / php-haiku example snippets
use PhpHaiku\Haiku;
$haiku = new Haiku('Converts a text string to haiku if possible or it returns false.');
if ($haiku->isHaiku()) {
echo $haiku->getFirstLine(); // Converts a text string
echo $haiku->getSecondLine(); // to haiku if possible
echo $haiku->getThirdLine(); // or it returns false.
}
composer