Skip to content

Checks if a text string could be a haiku and, if so, returns it as a haiku

License

Notifications You must be signed in to change notification settings

maxleaver/php-haiku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Haiku Generator

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.

About

Checks if a text string could be a haiku and, if so, returns it as a haiku

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages