PHPackages                             mdwheele/marky - 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. mdwheele/marky

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

mdwheele/marky
==============

Marky Markov and the Chamber of Secrets

1.0.0(11y ago)3661[1 issues](https://github.com/mdwheele/marky/issues)[1 PRs](https://github.com/mdwheele/marky/pulls)MITPHPPHP &gt;=5.3.0CI failing

Since May 5Pushed 5y ago2 watchersCompare

[ Source](https://github.com/mdwheele/marky)[ Packagist](https://packagist.org/packages/mdwheele/marky)[ Docs](https://github.com/mdwheele/marky)[ RSS](/packages/mdwheele-marky/feed)WikiDiscussions master Synced yesterday

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

marky
=====

[](#marky)

Marky is a markov-chain based text generator... it will be a continuance of the work at .

Install
-------

[](#install)

Via Composer

```
$ composer require mdwheele/marky
```

Usage
-----

[](#usage)

**From Raw Text**:

```
require_once('vendor/autoload.php');

use Marky\Marky;

// Strips new-lines, but that's it...
$marky = Marky::fromString('something long here is better');

echo $marky->generate(500);
```

**From a File**:

```
require_once('vendor/autoload.php');

use Marky\Marky;

$marky = Marky::fromFile('source.txt');

echo $marky->generate(500);
```

Testing
-------

[](#testing)

```
$ phpunit
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Dustin Wheeler](https://github.com/mdwheele)
- [Hay Kranen](http://www.haykranen.nl/2008/09/21/markov)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

4073d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30f5c5f0632ccca2dc8b9f0cea4db2e87b043f1ab4c8c0e9da6d4b46b78df5e9?d=identicon)[mdwheele](/maintainers/mdwheele)

---

Top Contributors

[![mdwheele](https://avatars.githubusercontent.com/u/2453394?v=4)](https://github.com/mdwheele "mdwheele (1 commits)")

---

Tags

marky

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mdwheele-marky/health.svg)

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

###  Alternatives

[silverstripe/multiform

SilverStripe forms with multiple steps, flow control and state persistence

3156.8k3](/packages/silverstripe-multiform)

PHPackages © 2026

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