Download the PHP package xmeltrut/word-search without Composer
On this page you can find all versions of the php package xmeltrut/word-search. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download xmeltrut/word-search
More information about xmeltrut/word-search
Files in xmeltrut/word-search
Download xmeltrut/word-search
More information about xmeltrut/word-search
Files in xmeltrut/word-search
Vendor xmeltrut
Package word-search
Short Description Word search generator.
License MIT
Homepage http://github.com/xmeltrut/WordSearch
Package word-search
Short Description Word search generator.
License MIT
Homepage http://github.com/xmeltrut/WordSearch
Please rate this library. Is it a good library?
Informations about the package word-search
Word Search
Word search generator written in PHP.
Features:
- Supports multiple words and grid sizes
- Supports horizontal and vertical words
- Supports intersecting words
- English and Finnish alphabets
Produces a grid for you to output, and list of answers.
HHEOÖ
EÖBAR
LSJFD
LLTOK
OPÖOU
Install
Install via Composer:
Usage
In English:
$puzzle = WordSearch\Factory::create(['foo', 'bar']);
In Finnish, with a custom grid size:
$puzzle = WordSearch\Factory::create(
['mansikka', 'omena', banaani'],
10,
'fi'
);
The Puzzle
object contains a toArray
method for the puzzle grid
and an iterable WordList
object with the answers in. You can use these
to output the puzzle yourself, or use the HTML transformer.
$transformer = new WordSearch\Transformer\HtmlTransformer($puzzle);
echo $transformer->grid();
echo $transformer->wordList();
Development
Tests can be run via Ant:
ant
All versions of word-search with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
The package xmeltrut/word-search contains the following files
Loading the files please wait ....