PHPackages                             spekulatius/php-char-combinator - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. spekulatius/php-char-combinator

ActiveLibrary[Testing &amp; Quality](/categories/testing)

spekulatius/php-char-combinator
===============================

An extentable, dynamic character-list generator for PHP.

0.0.1(2y ago)011MITPHPPHP ^8.2.0

Since Aug 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/spekulatius/php-char-combinator)[ Packagist](https://packagist.org/packages/spekulatius/php-char-combinator)[ Fund](https://www.buymeacoffee.com/spekulatius)[ GitHub Sponsors](https://github.com/spekulatius)[ RSS](/packages/spekulatius-php-char-combinator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

PHP Char Combinator
===================

[](#php-char-combinator)

The **PHP Char Combinator** is a utility class that provides methods to generate arrays of character combinations based on specified criteria.

**WARNING:**

- **This package is not intended to be deployed in any web-projects. It's a tool for testing - not production. No warrenty for any damage!**
- **This will generate a lot of combinations, make sure your are ready to handle the volume. You probably will need to adjust your `php.ini`**

Features
--------

[](#features)

- Generate arrays of character combinations within a specified length range.
- Generate an array of ASCII characters or non-alphanumeric ASCII characters.
- Recursive combination generation algorithm for generating all possible combinations.

Usage
-----

[](#usage)

### Installation

[](#installation)

```
composer require spekulatius/php-char-combinator
```

### Basic Usage

[](#basic-usage)

Here's a basic example of how you can use the `Combinator` class to generate combinations of characters:

```
use Spekulatius\PHPCharCombinator\Combinator;

$combinator = new Combinator();

// Generate combinations of lengths 1 to 3 using ASCII characters
$asciiChars = $combinator->prepareAsciiChars();
$combinations = $combinator->generateCombinations($asciiChars, 1, 3);

foreach ($combinations as $combination) {
    echo $combination . "\n";
}
```

### Additional Methods

[](#additional-methods)

The `Combinator` class provides two additional methods:

#### `prepareAsciiChars()`

[](#prepareasciichars)

This method generates an array of all ASCII characters.

```
$asciiChars = $combinator->prepareAsciiChars();
```

#### `prepareNonAlphanumericAsciiChars()`

[](#preparenonalphanumericasciichars)

This method generates an array of non-alphanumeric ASCII characters.

```
$nonAlphanumericChars = $combinator->prepareNonAlphanumericAsciiChars();
```

Contributing
------------

[](#contributing)

Feel free to contribute by opening issues or pull requests on [GitHub](https://github.com/spekulatius/php-char-combinator).

License
-------

[](#license)

This project is open-source and available under the [MIT License](LICENSE.md).

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

984d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8433587?v=4)[Peter Thaleikis](/maintainers/spekulatius)[@spekulatius](https://github.com/spekulatius)

---

Top Contributors

[![spekulatius](https://avatars.githubusercontent.com/u/8433587?v=4)](https://github.com/spekulatius "spekulatius (26 commits)")

---

Tags

brute-forceinfosectestingphpinfosecbrute-forcing

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spekulatius-php-char-combinator/health.svg)

```
[![Health](https://phpackages.com/badges/spekulatius-php-char-combinator/health.svg)](https://phpackages.com/packages/spekulatius-php-char-combinator)
```

###  Alternatives

[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[dave-liddament/sarb

Provides tools for baselining static analysis results and comparing against that baseline

1651.4M](/packages/dave-liddament-sarb)[letsdrink/ouzo-goodies

Utility classes, test assertions and mocking framework extracted from Ouzo framework.

132617.9k7](/packages/letsdrink-ouzo-goodies)[quizlet/hammock

Hammock is a stand-alone mocking library for Hacklang.

27445.5k](/packages/quizlet-hammock)[doppiogancio/mocked-client

A simple way to mock a client

2174.9k3](/packages/doppiogancio-mocked-client)

PHPackages © 2026

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