PHP Chess API

License: MIT Contributors

PHP Chess API is a REST-like API that provides chess functionality over an HTTP connection.

Similar to the PHP Chess Server, it can be hosted on a custom domain. However, while the chess server handles multiple concurrent connections based on real-time commands, the API endpoints may take a little longer to execute — for example, a file download or a database query.

A MySQL chess database needs to be set up as per the Chess Data docs.

Components Based Design

The PHP Chess API has been created using the Symfony framework, which is a set of reusable PHP components.

Lightweight

Dependencies required:

  • PHP Chess for chess functionality.
  • PHP dotenv for loading environment variables.