2017 © Pedro Peláez
 

library word-search

Word search generator.

image

xmeltrut/word-search

Word search generator.

  • Wednesday, August 10, 2016
  • by xmeltrut
  • Repository
  • 1 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Word Search

Build Status Latest Stable Version License, (*1)

Word search generator written in PHP., (*2)

Features:, (*3)

  • 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., (*4)

HHEOÖ
EÖBAR
LSJFD
LLTOK
OPÖOU

Install

Install via Composer:, (*5)

$ composer require xmeltrut/word-search "^1.0"

Usage

In English:, (*6)

$puzzle = WordSearch\Factory::create(['foo', 'bar']);

In Finnish, with a custom grid size:, (*7)

$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., (*8)

$transformer = new WordSearch\Transformer\HtmlTransformer($puzzle);
echo $transformer->grid();
echo $transformer->wordList();

Development

Tests can be run via Ant:, (*9)

ant

The Versions

10/08 2016

dev-master

9999999-dev http://github.com/xmeltrut/WordSearch

Word search generator.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

10/08 2016

1.0.3

1.0.3.0 http://github.com/xmeltrut/WordSearch

Word search generator.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

23/05 2016

1.0.2

1.0.2.0 http://github.com/xmeltrut/WordSearch

Word search generator.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

22/05 2016

1.0.1

1.0.1.0 http://github.com/xmeltrut/WordSearch

Word search generator.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires