chesszebra/pgn-splitter
Composer 安装命令:
composer require chesszebra/pgn-splitter
包简介
A PHP library to split PGN files into chunks per game or per section.
README 文档
README
A PHP library to split PGN files into chunks per game or per section.
Installation
Via composer:
composer require chesszebra/pgn-splitter
Usage
Split a stream per game:
use ChessZebra\Chess\Pgn\Splitter; $stream = fopen('my-games.pgn', 'r'); $splitter = new Splitter($stream, Splitter::SPLIT_GAMES); $splitter->split(function(string $buffer) { echo $buffer; });
Or split a stream per chunk (tags and moves chunks):
use ChessZebra\Chess\Pgn\Splitter; $stream = fopen('my-games.pgn', 'r'); $splitter = new Splitter($stream, Splitter::SPLIT_CHUNKS); $splitter->split(function(string $buffer) { echo $buffer; });
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please report them via HackerOne.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 932
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-03