PHP Psalm Container. https://psalm.dev/
Find a file
2026-04-19 21:45:12 +02:00
conf Handle ext opcache being moved to core with php 8.5 2025-12-20 17:25:35 +01:00
Containerfile Label the image 2026-04-19 21:45:12 +02:00
readme.md Label the image 2026-04-19 21:45:12 +02:00

Psalm container image

Container image containing php and the static analysis tool psalm.

Intended image contents

  • php
  • psalm

Run

podman container run \
    --rm \
    --interactive --tty \
    --volume=.:/src \
    code.netztechniker.at/ludwig/psalm:latest \
        --config /path/to/psalm-config.xml

# or the short variant
podman run --rm -it -v .:/src code.netztechniker.at/ludwig/psalm -c /path/to/psalm-config.xml

Build

PHP_VERSION=x.y \
PSALM_VERSION=x.y.z \
podman image build . \
    --build-arg PHP_VERSION=$PHP_VERSION \
    --build-arg PSALM_VERSION=$PSALM_VERSION \
    --annotation=org.opencontainers.image.revision=$(git rev-parse HEAD) \
    --annotation=org.opencontainers.image.source="https://code.netztechniker.at/ludwig/container-psalm" \
    --annotation=org.opencontainers.image.url="https://code.netztechniker.at/ludwig/-/packages/container/php-psalm" \
    --annotation=org.opencontainers.image.version=$PSALM_VERSION \
    --tag code.netztechniker.at/ludwig/psalm:$PSALM_VERSION-php$PHP_VERSION