boardflow/boardflow-core 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

boardflow/boardflow-core

Composer 安装命令:

composer require boardflow/boardflow-core

包简介

Framework-agnostic PHP chess core for move validation, game state management, FEN/PGN handling, and engine integration.

README 文档

README

⚠️ Version v0.0.0 — Work in Progress (WIP)

This package is currently under active development. Breaking changes are expected and the API is not stable yet.

📦 About

Boardflow Core is the foundational package of the Boardflow ecosystem. It provides a pure PHP implementation of chess logic, completely framework-agnostic and designed for extensibility.

The goal of this package is to handle all game rules and state management, while remaining independent from UI layers, frameworks (like Laravel), and chess engines.

🎯 Scope

This package is responsible for:

  • ♟️ Chess board representation
  • ♜ Piece modeling (types, colors, movement rules)
  • ✅ Move validation (legal moves, illegal moves, edge cases)
  • 🔁 Game state management (turns, history, undo/redo)
  • 👑 Special rules:
    • Castling
    • En passant
    • Promotion
  • ⚠️ Game conditions:
    • Check
    • Checkmate
    • Stalemate
    • Draw detection
  • 📄 FEN parsing and generation
  • 📜 PGN parsing and export

🚫 Out of Scope

This package deliberately does not include:

  • ❌ UI / rendering
  • ❌ Laravel integration
  • ❌ Chess engine (Stockfish, etc.)
  • ❌ Networking / multiplayer

🔌 Engine Integration (Future-Proof)

Boardflow Core is designed to work with pluggable chess engines via abstraction.

This allows integration with:

  • Local engines (e.g. Stockfish via CLI, but to be analysed)
  • Remote APIs
  • Custom engines (e.g. future boardflow-engine)

🧱 Philosophy

  • Pure PHP, no framework dependencies
  • Strict typing and modern PHP (8.2+)
  • Decoupled and testable architecture
  • Designed for reuse across multiple environments

🛠️ Status

🚧 This project is in early development.

Things that may change:

  • Public API
  • Class structure
  • Naming conventions
  • Actually... Everything :D

📚 Roadmap (Initial, to be discussed)

  • Board representation
  • Piece system
  • Move validation engine
  • FEN support
  • PGN support
  • Game state manager
  • Engine interface abstraction

🤝 Contributing

Not open for contributions yet — the architecture is still being defined.

📄 License

MIT

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 7
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固