{"id":40057670,"url":"https://github.com/sudokukit/sudoku-php","last_synced_at":"2026-01-19T07:01:58.501Z","repository":{"id":56956359,"uuid":"108538674","full_name":"sudokukit/sudoku-php","owner":"sudokukit","description":"Library for generating, validating, solving sudoku puzzles","archived":false,"fork":false,"pushed_at":"2025-08-10T15:36:39.000Z","size":79,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-11T20:34:05.185Z","etag":null,"topics":["library","php7","sudoku"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sudokukit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-10-27T11:37:23.000Z","updated_at":"2025-08-11T17:58:34.000Z","dependencies_parsed_at":"2025-08-11T20:34:13.603Z","dependency_job_id":"e635b1fb-3fed-429c-9fa4-b997bb997b57","html_url":"https://github.com/sudokukit/sudoku-php","commit_stats":null,"previous_names":["sudokukit/sudoku-php"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/sudokukit/sudoku-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudokukit%2Fsudoku-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudokukit%2Fsudoku-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudokukit%2Fsudoku-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudokukit%2Fsudoku-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sudokukit","download_url":"https://codeload.github.com/sudokukit/sudoku-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudokukit%2Fsudoku-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","php7","sudoku"],"created_at":"2026-01-19T07:01:57.313Z","updated_at":"2026-01-19T07:01:58.492Z","avatar_url":"https://github.com/sudokukit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/coenmooij/sudoku/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/coenmooij/sudoku/?branch=master) [![Code Intelligence Status](https://scrutinizer-ci.com/g/coenmooij/sudoku/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence)\n\n\u003e [!WARNING]\n\u003e The puzzle generating algorithm is suspected of generating non-unique puzzles\n\n\u003e [!CAUTION]\n\u003e This package is currently not available through packagist/composer\n\n\n# sudoku\nLibrary for generating, validating, solving sudoku puzzles\n\n## Composer\nTo use this package, simply run `composer require coenmooij/sudoku`.\n\n## Usage\n\n### SudokuService\nExposes the main functionality of the library in a service.\n\n### Solvers\n\n#### BacktrackSolver\nSolves any solvable grid using an informed backtrack algorithm. Throws an `UnsolvableException` if it fails.\n\n#### SimpleSolver\nSolves the grid using only row, column and block checks. Will return the (partially) completed `Grid`.\n\n### Generators\n\n#### SolutionGenerator\nGenerates a complete `Grid`\n\n#### PuzzleGenerator\nCreates a puzzle based on a complete `Grid` and a `Difficulty`\nDifficulty ranges from 1-5 and can be accessed by a constant. e.g. `Difficulty::EASY`.\n\n#### HintGenerator\nFrom a grid it creates hints. It returns locations which can be solved by row, column \u0026 block checks.\nYou can either get a random one or all of them.\n\n### GridSerializer\n`GridSerializer` is a simple serializer that turns a 81 character string into a `Grid` and back.\ne.g. `642957138719843652538126794483712569976538421125694387294361875357489216861275943`\nEmpty values will be serialized to `0` but the deserializer also accepts alphabetical characters as empty values. \n\n### Validator\n\n#### DigValidator\nHelper 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.\n\n#### GridValidator\nSimple utility class to check if all (row, column and block) constraints are still met.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudokukit%2Fsudoku-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsudokukit%2Fsudoku-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudokukit%2Fsudoku-php/lists"}