2017 © Pedro Peláez
 

library pgn-splitter

A PHP library to split PGN files into chunks per game or per section.

image

chesszebra/pgn-splitter

A PHP library to split PGN files into chunks per game or per section.

  • Saturday, May 12, 2018
  • by waltertamboer
  • Repository
  • 1 Watchers
  • 1 Stars
  • 166 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 19 % Grown

The README.md

pgn-splitter

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

A PHP library to split PGN files into chunks per game or per section., (*2)

Installation

Via composer:, (*3)

composer require chesszebra/pgn-splitter

Usage

Split a stream per game:, (*4)

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):, (*5)

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., (*6)

Security

If you discover any security related issues, please report them via HackerOne., (*7)

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

12/05 2018

dev-master

9999999-dev

A PHP library to split PGN files into chunks per game or per section.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

12/05 2018

1.1.1

1.1.1.0

A PHP library to split PGN files into chunks per game or per section.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

13/10 2017

1.1.0

1.1.0.0

A PHP library to split PGN files into chunks per game or per section.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

03/09 2017

1.0.0

1.0.0.0

A PHP library to split PGN files into chunks per game.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires