- Start the container:
docker compose up --build -d
- Open shell inside the container:
docker exec -it aoc23 bash
- Follow container logs:
docker compose logs -f
- Solve task:
bin/console <day> [<part>]
, where<part>
isA|B
- Enable debugger with
xdt bin/console ...
(xdt
forXDEBUG_TRIGGER=
) - Run tests:
[xdt] phpunit [--filter 01-B]
FAST= phpunit
to skip long-running tests
- Run static analysis:
phpstan