Skip to content

itskenny0/markov-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

markov-php

Simple markov chain implementation for PHP.

Example usage

<?php
include("Markov.class.php");
$chain = new Markov;

$chain->train("This is a test, a very simple test that we can use to do things.");
$chain->train("Another test is this.");
$chain->train("Maybe we should keep it simple.");

echo $chain->generateText(5);

About

Tiny markov chain implementation for PHP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages