maxleaver/php-haiku

Converts text into a haiku when possible

2.0.0 2017-06-30 14:51 UTC

This package is not auto-updated.

Last update: 2024-04-22 05:39:58 UTC


README

Converts a text string
to haiku if possible
or it returns false.

Installation

composer require maxleaver/php-haiku

Basic Usage

<?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.
}

Contributing

Improve this project
with bug reports, pull requests and
feature suggestions.