Requirements

Installation

Clone the repository:

git clone https://github.com/anwsonwsymous/simple-sql-builder.git && cd simple-sql-builder

Copy .env.example:

cp .env.example .env

Install composer:

docker run --rm -u $(id -u):$(id -g) -v $(pwd):/app composer install --ignore-platform-reqs

Build and start the Docker containers:

docker compose up --build -d

Running Tests

docker compose exec app composer run test

or

docker compose exec app vendor/bin/phpunit --configuration phpunit.xml

Running Real Queries

docker compose exec app php src/real_test.php