Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefanotorresi/thorr-advent
Advent of Code puzzle solutions wrapped in a PHP7 CLI app
https://github.com/stefanotorresi/thorr-advent
Last synced: 29 days ago
JSON representation
Advent of Code puzzle solutions wrapped in a PHP7 CLI app
- Host: GitHub
- URL: https://github.com/stefanotorresi/thorr-advent
- Owner: stefanotorresi
- License: mit
- Created: 2015-12-07T20:01:06.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-09T18:29:48.000Z (about 9 years ago)
- Last Synced: 2024-11-30T07:40:42.157Z (about 1 month ago)
- Language: PHP
- Homepage:
- Size: 68.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# thorr-advent
[Advent of Code](http://adventofcode.com/) puzzle solutions wrapped in a PHP7 CLI app.
Most overkill and far from code golf as it can be.## Installation
### Composer global install
```shell
$: composer global require stefanotorresi/thorr-advent
```The executable will be `~/.composer/bin/advent`.
### Git
```shell
$: git clone https://github.com/stefanotorresi/thorr-advent
$: cd thorr-advent
$: composer install
```The executable will be `./advent`.
### Phar
`TBD`## Usage
Each puzzle is available as a command named `dayN`.
You can use either a file path or stdin as input:
```shell
$: advent day1 day1.txt
``````shell
$: echo "()()())))((((((((((((" | advent day1
```Both parts of the puzzle will be executed by default, but you can execute just a single part if you want,
using the `--part` option:
```shell
$: advent day1 day1.txt --part basement
```You can get to know the part names with the `help` command:
```shell
$: advent help day1
```