PHPackages                             sanderspaas/word-search - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sanderspaas/word-search

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sanderspaas/word-search
=======================

Word search generator.

052PHP

Since Jan 22Pushed 2y agoCompare

[ Source](https://github.com/SanderSpaas/WordSearch)[ Packagist](https://packagist.org/packages/sanderspaas/word-search)[ RSS](/packages/sanderspaas-word-search/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Word Search
===========

[](#word-search)

[![Build Status](https://camo.githubusercontent.com/0df067bf1acb4a3f576e9cd82320adf0b39b08d01d6d101ea35948818a74f3ad/68747470733a2f2f7472617669732d63692e6f72672f786d656c747275742f576f72645365617263682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/xmeltrut/WordSearch)[![Latest Stable Version](https://camo.githubusercontent.com/bd714577fe059234c9fd91a3b1238aa9f1b5f383ff9df4bb0a14fbbb42af2d0b/68747470733a2f2f706f7365722e707567782e6f72672f786d656c747275742f776f72642d7365617263682f762f737461626c65)](https://packagist.org/packages/xmeltrut/word-search)[![License](https://camo.githubusercontent.com/90f56a78e42418e45a74c44d45a70f605c267aaffefcbf9ddd08135d4208e80d/68747470733a2f2f706f7365722e707567782e6f72672f786d656c747275742f776f72642d7365617263682f6c6963656e7365)](https://packagist.org/packages/xmeltrut/word-search)

Word search generator written in PHP.

Features:

- Supports multiple words and grid sizes
- Supports horizontal and vertical words
- Supports intersecting words
- English, Hebrew, Arabic and Finnish alphabets

Produces a grid for you to output, and list of answers.

```
HHEOÖ
EÖBAR
LSJFD
LLTOK
OPÖOU

```

Install
-------

[](#install)

Install via Composer:

```
$ composer require sanderspaas/word-search "^1.0"
```

Usage
-----

[](#usage)

In English:

```
use WordSearch\Factory;
use WordSearch\Alphabet\English;

$puzzle = Factory::create(['foo', 'bar'], 15, new English);

```

In Hebrew with reversing the words:

```
use WordSearch\Factory;
use WordSearch\Alphabet\Hebrew;

$puzzle = Factory::create(['אבג', 'דהו'], 15, new Hebrew, true);

```

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
-----------

[](#development)

Tests can be run via Ant:

```
ant

```

Credits
-------

[](#credits)

This package is a fork of [xmeltrut's Word Search](https://github.com/xmeltrut/WordSearch).

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 56.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/efea7afcc9f0be3973bad7508cf6c160126b9b687b2dcdb19d6f950b413e9f16?d=identicon)[SanderSpaas](/maintainers/SanderSpaas)

---

Top Contributors

[![xmeltrut](https://avatars.githubusercontent.com/u/961906?v=4)](https://github.com/xmeltrut "xmeltrut (18 commits)")[![SanderSpaas](https://avatars.githubusercontent.com/u/80250065?v=4)](https://github.com/SanderSpaas "SanderSpaas (14 commits)")

### Embed Badge

![Health badge](/badges/sanderspaas-word-search/health.svg)

```
[![Health](https://phpackages.com/badges/sanderspaas-word-search/health.svg)](https://phpackages.com/packages/sanderspaas-word-search)
```

###  Alternatives

[overtrue/php-package

A PHP package template repository.

4726.7k](/packages/overtrue-php-package)[soup/paginator

Paginator is a simple class that allows you to create pagination. It doesn't require any database connection. It is compatible with Twitter's Bootstrap Framework, by using the CSS class pagination that is also attached.

351.5k](/packages/soup-paginator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
