Download the PHP package coenmooij/sudoku without Composer

On this page you can find all versions of the php package coenmooij/sudoku. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sudoku

Scrutinizer Code Quality Code Intelligence Status Build Status

sudoku

Library for generating, validating, solving sudoku puzzles

Composer

To use this package, simply run composer require coenmooij/sudoku.

Usage

SudokuService

Exposes the main functionality of the library in a service.

Solvers

BacktrackSolver

Solves any solvable grid using an informed backtrack algorithm. Throws an UnsolvableException if it fails.

SimpleSolver

Solves the grid using only row, column and block checks. Will return the (partially) completed Grid.

Generators

SolutionGenerator

Generates a complete Grid

PuzzleGenerator

Creates a puzzle based on a complete Grid and a Difficulty Difficulty ranges from 1-5 and can be accessed by a constant. e.g. Difficulty::EASY.

HintGenerator

From a grid it creates hints. It returns locations which can be solved by row, column & block checks. You can either get a random one or all of them.

GridSerializer

GridSerializer is a simple serializer that turns a 81 character string into a Grid and back. e.g. 642957138719843652538126794483712569976538421125694387294361875357489216861275943 Empty values will be serialized to 0 but the deserializer also accepts alphabetical characters as empty values.

Validator

DigValidator

Helper class to see if it is 'safe' to dig out the value at a certain Location. It checks whether the Grid is still uniquely solvable.

GridValidator

Simple utility class to check if all (row, column and block) constraints are still met.


All versions of sudoku with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package coenmooij/sudoku contains the following files

Loading the files please wait ....