PHPackages                             heidilabs/markov-php - 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. heidilabs/markov-php

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

heidilabs/markov-php
====================

A simple markov chain experiment

0.4(11y ago)167.3k9[1 issues](https://github.com/heidilabs/markov-php/issues)1MITPHP

Since Dec 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/heidilabs/markov-php)[ Packagist](https://packagist.org/packages/heidilabs/markov-php)[ Docs](https://github.com/heidilabs/markov-php)[ RSS](/packages/heidilabs-markov-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)DependenciesVersions (6)Used By (1)

markov-php
==========

[](#markov-php)

Warning: this project is highly experimental.

Usage
-----

[](#usage)

Just clone and run `composer install` to create the autoloader. Not necessary if you just want to use the CLI script.

### Using the Library in your Project

[](#using-the-library-in-your-project)

markov-php is available on Packagist for installation through Composer. [heidilabs/markov-php](https://packagist.org/packages/heidilabs/markov-php)

```
    $ composer require heidilabs/markov-php "~0.2"

```

Demos
-----

[](#demos)

### Word Chain

[](#word-chain)

CLI:

```
    $ php chainer.php -r demos/resources/mobydick.txt

```

example output:

> to cast anchor in the deep; for heavy chains are being dragged along the cycloid, my soapstone for example, will

Script:

```
