Gitlab CI

June 24, 2026 · View on GitHub

Contributed by RVxLab.

The example below demonstrates how phpqa can be used in the Gitlab CI.

# .gitlab-ci.yml
image: php:8.3-fpm-alpine3.15

stages:
    - style

php-cs-fixer:
    stage: style
    image: jakzal/phpqa:php8.3-alpine
    variables:
      # set to “true” if the tool can work without Composer dependencies
      SKIP_COMPOSER_INSTALL: false
    script:
        - php-cs-fixer fix --dry-run --stop-on-violation

phpstan:
    stage: style
    image: jakzal/phpqa:php8.3-alpine
    script:
      - phpstan analyze