PHP code example of kayrunm / php-adventofcode

1. Go to this page and download the library: Download kayrunm/php-adventofcode library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kayrunm / php-adventofcode example snippets


protected array $answers = [
    'partOne' => 383,
    'partTwo' => 493,
];
bash
$ php adventofcode make 7 --year=2021 
bash
$ php adventofcode day 7 --year=2021
base
$ php adventofcode year 2021