stanjan / sudoku
Sudoku generators, solvers and readers.
v0.1.1
2021-06-29 18:47 UTC
Requires
- php: ^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.3
Requires (Dev)
- phpstan/phpstan: ^0.12.64
- phpunit/phpunit: ^9.5
Suggests
- ext-curl: Enables cURL for Guzzle
This package is auto-updated.
Last update: 2024-12-29 06:22:06 UTC
README
This project uses logic to generate and solve sudoku's. It also uses OpenCV and OCR to read sudoku's from photo's.
Installation
Composer
$ composer require stanjan/sudoku
OpenCV
This library requires OpenCV to process images before applying OCR on them. Please follow the installation guide on https://github.com/php-opencv/php-opencv.
Information
OCR
The image sent to the OCR implementation gets preprocessed with OpenCV. For example:
Supported OCR implementations:
Dev tools
You can use the Dockerfile in this repository for development.
PHPStan
$ vendor/bin/phpstan analyse
PHP-CS-fixer
Installation
$ composer install --working-dir=tools/php-cs-fixer
Usage
$ tools/php-cs-fixer/vendor/bin/php-cs-fixer fix ./ --dry-run --diff