frnxstd/sudoxu

Sudoxu is a simple sudoku creator class

v1.0 2018-01-25 15:08 UTC

This package is not auto-updated.

Last update: 2024-11-10 05:46:00 UTC


README

Scrutinizer Code Quality Build Status Code Intelligence Status

Sudoxu is a light and easy to use PHP sudoku genarator class. It's able to create up to 6^2sq sudokus easily.

http://sudoxu.com

Installation

Run the command in your project folder:

composer require frnxstd/sudoxu

Example usage

You can create it as ARRAY, JSON or SERIALIZED.

<?php
require_once __DIR__ . '/../vendor/autoload.php'; // Autoload files using Composer autoload

use Sudoxu\Sudoku;

/** @var Sudoku $Sudoku */
$Sudoku    = new Sudoku();

// Example 1 Returns JSON
$json      = $Sudoku->generate('json');

// Example 2 Returns an array
$array     = $Sudoku->generate('array');

// Example 3 Returns Serialized
$serialize = $Sudoku->generate('serialize');