PHPackages                             vgip/wordle - 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. vgip/wordle

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

vgip/wordle
===========

Pick words from directory according to conditions

1.1.1(3y ago)011PHPPHP &gt;=7.4

Since Mar 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vgip/Wordle)[ Packagist](https://packagist.org/packages/vgip/wordle)[ RSS](/packages/vgip-wordle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Wordle
======

[](#wordle)

Pick words from directory according to conditions:

- the letter is in a word in a defined place;
- the letter is in a word in a undefined place;
- the letter is missing from a word.

```
use Vgip\Wordle\Pick\Pick;
use Vgip\Wordle\Pick\LetterConfigFactory;

/** Get directory of words as array - see example/words_en_5_letter.txt for example */
$pathWords = join(DIRECTORY_SEPARATOR, [__DIR__, 'words_en_5_letter.txt']);
$wordList = file($pathWords);

/** Set conditions to pick of words */
$letterList = [];
$letterList['x'] = false; // The letter "x" is missing from a word.
$letterList['a'] = LetterConfigFactory::factory('defined', [2]); // Set that the letter "a" is in the word in 2nd place
$letterList['n'] = LetterConfigFactory::factory('undefined', [3, 5]); // Set that the letter "n" is not in the word in 3nd and 5nd places

$pick = new Pick();
$candidateList = $pick->getCandidate($wordList, $letterList);
$resultLog = $pick->getResultLog();

print_r($candidateList);
```

setSkipWordDoubleLetter()
-------------------------

[](#setskipworddoubleletter)

If set True will be skipped all words with duplicate letters. False set as default.

```
$pick->setSkipWordDoubleLetter(true);
```

setResultLogOn()
----------------

[](#setresultlogon)

If set to true, all word selection actions will be logged. False set as default.

```
$pick->setResultLogOn(true);
$candidateList = $pick->getCandidate($wordList, $letterList);
$resultLog = $pick->getResultLog();
print_r($resultLog);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~3 days

Total

3

Last Release

1149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cf451e6d8d477fc8f69325296d106e236dcf79b3d1be17d4483b81d8db5027f?d=identicon)[vgip](/maintainers/vgip)

---

Top Contributors

[![vgip](https://avatars.githubusercontent.com/u/22733931?v=4)](https://github.com/vgip "vgip (3 commits)")

### Embed Badge

![Health badge](/badges/vgip-wordle/health.svg)

```
[![Health](https://phpackages.com/badges/vgip-wordle/health.svg)](https://phpackages.com/packages/vgip-wordle)
```

PHPackages © 2026

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