PHP Chess

Latest Stable Version GitHub Workflow Status License: GPL v3

A chess library for PHP.

Install

Via composer:

$ composer require chesslablab/php-chess

Play Chess

use Chess\Game;

$game = new Game();

$game->play('w', 'e4');
$game->play('b', 'e5');

The call to the $game->play method returns true or false depending on whether or not a chess move can be made.

Documentation

Read the latest docs here.

Demo

Check out this demo.

License

The GNU General Public License.

Contributions

See the contributing guidelines.

Happy learning and coding! Thank you, and keep it up.