Converts a text string
to haiku if possible
or it returns false.
composer require maxleaver/php-haiku
<?php
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.
}
Improve this project
with bug reports, pull requests and
feature suggestions.