A Symfony web application that displays a rotating daily image from a numbered image collection, with templated text overlays.
- Docker & Docker Compose
- Task (optional, but recommended)
# Start local development environment
task compose-up
# Install PHP dependencies
task composer -- install
# Copy and configure folder settings
cp config/daily_folders.yaml.dist config/daily_folders.yaml
# Generate an access key
task get-key -- 2024-01-01 my_folder
# Visit the app at the URL shown in the key outputImage folders are configured in config/daily_folders.yaml (git-ignored).
A config/daily_folders.yaml.dist template is provided as a starting point.
- Place your numbered image files in
daily-files/<folder_name>/. - Add an entry to
config/daily_folders.yaml:
my_folder:
prefix: "" # Text before the number (default: "")
filetype: jpg # File extension without dot (default: "jpg")
digits: 4 # Zero-padded number width, e.g. 4 = 0001 (default: 4)
start_zero: false # First file numbered 0 instead of 1 (default: false)- Generate a key via CLI or the
/get-keyweb form:
task get-key -- 2024-01-01 my_folder
task get-key -- 2024-01-01 my_folder --ignore_weekendsIf your files are daily-files/ch/ch_0001.jpg, daily-files/ch/ch_0002.jpg, etc:
ch:
prefix: "ch_"
filetype: jpg
digits: 4
start_zero: falseAccess the daily display at /display/daily/<key>.
Keys can be generated:
- CLI:
task get-key -- <start_date> <folder_name> [--ignore_weekends] - Web: Visit
/get-key(protected by basic auth in production)
See task --list for all available commands.