maxleaver / php-haiku
Converts text into a haiku when possible
Installs: 101
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/maxleaver/php-haiku
Requires
- php: >=5.6.0
- davechild/textstatistics: dev-master
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2025-10-06 13:07:24 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.