https://github.com/zepgram/aoc-php
A very simple php resolver for Advent of Code. Designed for web developers to resolve the challenge every day!
https://github.com/zepgram/aoc-php
Last synced: 2 months ago
JSON representation
A very simple php resolver for Advent of Code. Designed for web developers to resolve the challenge every day!
- Host: GitHub
- URL: https://github.com/zepgram/aoc-php
- Owner: zepgram
- Created: 2020-12-06T15:51:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-06T22:57:46.000Z (over 5 years ago)
- Last Synced: 2025-12-27T09:56:26.332Z (6 months ago)
- Language: PHP
- Homepage: https://adventofcode.com
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A resolver for Advent of Code
A very simple php resolver for Advent of Code. Designed for web developers to resolve the challenge every day!
https://adventofcode.com
# How to install
```
composer create-project "zepgram/aoc-php"
```
Then simply move it in your /var/www/html directory
# How it works
- Create a new Result class, with name space `Aoc\Day${day}\`
- Then add input from website (eg: https://adventofcode.com/2020/day/1/input) in the directory `/input`
# How to get result
With simple parameters: http://127.0.0.1/aoc-php/?day=1&problem=1
- The "day" value is corresponding to directory suffix which is incremental: 1/2/3/4 etc...
- The "problem" value is corresponding to abstract class method and can only take value "1" or "2"
