If you clone or fork my repository, be a fair player and remove all puzzle solutions. A quick method to get you started:
YEAR=2021
rm -rf "src/AdventOfCode$YEAR/Day*/*"
bin/console add:year -y $YEAR
Install the Data Structures package from PECL.
These provide a massive performance increase over the composer package php-ds/php-ds
.
# For Debian/Ubuntu:
sudo apt install php-dev php-pear build-essential
sudo pecl install ds
bin/console [solve] [-y|--year YEAR] [-d|--day DAY] [-t|--test]
Option Default Description
-t,--test false Run your code against test values, rather than your puzzle input.
-y,--year current year Run year X.
-d,--day all days Run day X, default value is all days.
Note: only days that return actual values will be displayed.
Prepares all classes for the entire edition. Default value: current year
bin/console add:year --year YEAR
Adds the class for day X. Year parameter is optional. Default is current year.
bin/console add:day --day DAY [-y|--year YEAR]