PHP Classes

fen2Diagram: Render chess boards from piece positions

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 43%Total: 487 All time: 5,898 This week: 524Up
Version License PHP version Categories
fen2diag 0.1GNU Lesser Genera...3.0Graphics, Games
Description 

Author

This class can be used to render chess board diagrams from piece positions in the FEN format (Forsyth-Edwards Notation).

It parses a string in the FEN format to retrieve the piece positions in a chess board.

The class generates an image with an empty board and icons of the images of each piece in the board and the respective position.

The generated board image can be served as the current script output in JPEG, GIF or PNG format.

Picture of Can Ince
Name: Can Ince <contact>
Classes: 3 packages by
Country: Turkey Turkey
Age: 49
All time rank: 5277 in Turkey Turkey
Week rank: 170 Up2 in Turkey Turkey Up

Details

Class fen2Diagram by Can Ince. Description: This class can be used to render chess diagrams. It can read the positions of the pieces from a FEN notation and can render chess diagrams out of them. Usage: Please refer to example.php License: fen2Diagram is released under GNU/LGPL.

Screenshots (1)  
  • screeshot1.jpg
  Files folder image Files (18)  
File Role Description
Files folder imagechessset (12 files)
Image file emptyBoard.jpg Photo empty chess board
Plain text file example.php Example Example usage for fen2Diagram.class.php
Plain text file fen2Diagram.class.php Class Main fen2Diagram class
Plain text file gnu-lgpl.txt Lic. License file
Plain text file readme.txt Data Readme file

  Files folder image Files (18)  /  chessset  
File Role Description
  Image file black_bishop.gif Icon black bishop icon
  Image file black_king.gif Icon black king icon
  Image file black_knight.gif Icon black knight icon
  Image file black_pawn.gif Icon black pawn icon
  Image file black_queen.gif Icon black queen icon
  Image file black_rook.gif Icon black rook icon
  Image file white_bishop.gif Icon white bishop icon
  Image file white_king.gif Icon white king icon
  Image file white_knight.gif Icon white knight icon
  Image file white_pawn.gif Icon white pawn icon
  Image file white_queen.gif Icon white queen icon
  Image file white_rook.gif Icon white rook icon

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:487
This week:0
All time:5,898
This week:524Up
 User Ratings  
 
 All time
Utility:62%StarStarStarStar
Consistency:68%StarStarStarStar
Documentation:-
Examples:56%StarStarStar
Tests:-
Videos:-
Overall:43%StarStarStar
Rank:3537