This repository contains an example of how to use or integrate DDD with a working PHP framework (Symfony). Using a simple Tic tac toe game as reference.
- Clone repository
- Install dependencies
composer install
- Configure
.env
file with a new database connection.DATABASE_URL=mysql://user:password@127.0.0.1:3306/tic-tac-toe
- Import database schema, execute
schema.sql
fromdatabase
directory. - Run
game:start
- Follow game instructions.
user:create <username>
: Creates an useruser:delete <username>
: Deletes an usergame:start
: Starts a tic tac toe gamescores:show
: Shows leaderboards
Alpha testing only.
Pending to integrate.