# PHP Maze Generator A simple and minimalistic maze generator ## Installation ```shell composer require Osmal/Maze ``` ## Usage **Basic Usage:** ```php require __DIR__ . '/vendor/autoload.php'; $width = 15; $height = 15; $maze = new Osmal\Maze\Generator($width,$height); $maze->print(); ``` **You can also make your own display logic:** ```php echo '
'; foreach ($maze->getMaze() as $row) { foreach ($row as $cell) { echo $cell ? ' ' : ' '; } echo ''; ```
'; } echo '