robiningelbrecht/puzzle-generator

dev-master 2023-03-14 18:17 UTC

This package is auto-updated.

Last update: 2024-09-14 21:55:22 UTC


README

Slim

CI Codecov.io License PHPStan Enabled PHP

这是一个PHP库,旨在将魔方谜题渲染为SVG图像。方法是导航到 https://puzzle-generator.robiningelbrecht.be/cube 并提供查询参数来配置所需的魔方。

它深受 visualcubePuzzleGen 的启发。感谢 tdecker91 提供这些内容!

文档

完整文档可在 https://puzzle-generator.robiningelbrecht.be 上找到

一些示例

默认

https://puzzle-generator.robiningelbrecht.be/cube

default

打乱

https://puzzle-generator.robiningelbrecht.be/cube?cube[algorithm]=M2 E2 S2

scrambled

开发

请随意进行分支并修改以满足您的需求。如果您这样做,请考虑给它一个 ⭐。

克隆仓库

> git clone git@github.com:robiningelbrecht/puzzle-generator.git

构建Docker容器

> docker-compose up --build -d

安装依赖项

> docker-compose run --rm php-cli composer install

导航到 http://localhost:9090