{"id":19793329,"url":"https://github.com/failedcode/adventofcode-2018","last_synced_at":"2026-05-09T23:33:13.545Z","repository":{"id":152343808,"uuid":"159948177","full_name":"FailedCode/adventofcode-2018","owner":"FailedCode","description":"http://adventofcode.com/2018","archived":false,"fork":false,"pushed_at":"2018-12-19T21:43:15.000Z","size":190,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T04:35:15.280Z","etag":null,"topics":["advent-of-code","advent-of-code-2018","fun"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FailedCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-01T13:36:48.000Z","updated_at":"2018-12-19T21:43:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"2fc764e1-36a9-4e1c-9478-c26e466f4326","html_url":"https://github.com/FailedCode/adventofcode-2018","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FailedCode%2Fadventofcode-2018","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FailedCode%2Fadventofcode-2018/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FailedCode%2Fadventofcode-2018/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FailedCode%2Fadventofcode-2018/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FailedCode","download_url":"https://codeload.github.com/FailedCode/adventofcode-2018/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241133109,"owners_count":19915338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advent-of-code","advent-of-code-2018","fun"],"created_at":"2024-11-12T07:09:30.058Z","updated_at":"2026-05-09T23:33:08.523Z","avatar_url":"https://github.com/FailedCode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent of Code 2018\nhttp://adventofcode.com/2018\n\nSolutions with PHP 7.2\n\n## Features\n  * Download Input of the day\n    * Doesn't override already existing files!\n  * Test mode\n    * Tweak the Puzzle code while making sure the solution doesn't get lost\n\n## Install\n`composer install`\n\n[composer???](https://getcomposer.org/doc/00-intro.md)\n\nIn case you do not have curl installed:\n\n`sudo apt-get install php-curl`\n\nIn case you do not have curl installed:\n\n`sudo apt-get install php-xml`\n\nCopy the .env.dist file\n\n`cp .env.dist .env`\n\nInsert your SESSION cookie for automated download of your personal puzzle input. \n\nCopy the testvalues.php.dist file\n\n`cp Days/testvalues.php.dist Days/testvalues.php`\n\ntestvalues.php ist used for refactoring. Known puzzle solutions are tested against to tell if a change broke the code.\n\n## Run\n`./runDay.php 1`\n\nRun a day.\n\n`./runDay.php 1 2 3`\n\nRuns multiple days.\n\n`./runDay.php 2p2`\n\nRuns only the second part of day 2.\n\n`./runDay.php 2 --test`\n\nTests, if the results for day 2 changed.\n\n`./runDay.php 2 --psr2-check`\n\nCheck code for PSR-2 violations\n\n## Resources\n\n  * [PHP Changes](http://php.net/manual/en/appendices.php)\n    * [New PHP 7.0 Features](http://php.net/manual/en/migration70.new-features.php)\n    * [New PHP 7.1 Features](http://php.net/manual/en/migration71.new-features.php)\n    * [New PHP 7.2 Features](http://php.net/manual/en/migration72.new-features.php)\n  * You might like \"Modern PHP\" by Josh Lockhart \n  * Day 11: [Summed-area table](https://en.wikipedia.org/wiki/Summed-area_table)\n    * The first brute force approach took 40 minutes\n    * Building and using an lookup table reduced the time down to 2.37 seconds\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffailedcode%2Fadventofcode-2018","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffailedcode%2Fadventofcode-2018","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffailedcode%2Fadventofcode-2018/lists"}