Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chsxf/advent-of-code-2024
An Advent of Code 2024 solutions repository in PHP
https://github.com/chsxf/advent-of-code-2024
advent-of-code advent-of-code-2024 php
Last synced: 23 days ago
JSON representation
An Advent of Code 2024 solutions repository in PHP
- Host: GitHub
- URL: https://github.com/chsxf/advent-of-code-2024
- Owner: chsxf
- License: mit
- Created: 2024-12-03T14:26:01.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-05T23:51:05.000Z (about 1 month ago)
- Last Synced: 2024-12-06T00:28:04.328Z (about 1 month ago)
- Topics: advent-of-code, advent-of-code-2024, php
- Language: PHP
- Homepage: https://adventofcode.com/2024
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About This Repository
This repository contains the complete source code of my participation to the [Advent of Code 2024](https://adventofcode.com/2024).
All puzzles are solved through PHP.
## Conventions
This project uses [gitmoji](https://gitmoji.dev) for its commit messages.
# Requirements
This source code has only been tested with **PHP 8.3** and is not guaranteed to work on any other version (even though most puzzle uses pretty standard PHP code).
# How To Run
Each daily puzzle is stored in its own folder, and each step has its own PHP file.
For example, if you want to run the second puzzle of the third day, proceed as follows from the root folder of the directory:
```sh
cd day3
php day3-2.php
```## Running With Test Input
Each daily puzzle comes with two data sets: test and full input.
You can run the code using the test input like this:
```sh
php day3-2.php sample
```