Sign inSign up

iermentraut/phplint

By iermentraut

•Updated almost 5 years ago

Alpine-based multistage-build version of PHPLint for reproducible usage with pre-commit or in CI

Image
1

200

iermentraut/phplint repository overview

⁠PHPLint Docker

GitHub GitHub Workflow Status (branch) GitHub

⁠Description

Tiny Alpine-based dockerized version of Composer package overtrue/phplint⁠ to use with pre-commit, Github Actions, GitLab CI and many others.

⁠Supported tags

Docker Docker Pulls

alpine based images:

Docker tagPHP VersionImage size
3.0.3-alpine⁠Latest stable 3.0.3 versionDocker Image Size (tag)
3.0.2-alpine⁠Latest stable 3.0.2 versionDocker Image Size (tag)

⁠Usage

To use this image, pull from Docker Hub, run the following command:

docker pull iermentraut/phplint:3.0.3-alpine
---
default_language_version:
    python: python3

default_stages: [commit, push]

repos:
    [...]
    - repo: local
      hooks:
          - id: docker-phplint
            name: docker-phplint
            language: docker_image
            entry: iermentraut/phplint:3.0.3-alpine
            args:
                - "--"
                - "/src"
            types: [file]
            files: \.php

    # or if you don't have a .phplint.yml file:

    - repo: local
      hooks:
          - id: docker-phplint
            name: docker-phplint
            language: docker_image
            entry: iermentraut/phplint:3.0.3-alpine
            args:
                - --no-cache
                - --no-configuration
                - --warning
                - --exclude=vendor
                - --exclude=node_modules
            types: [file]
            files: \.php
    [...]
⁠Standalone
docker run --rm -v $(pwd):/src iermentraut/phplint:3.0.3-alpine \
    -vvv \
    --no-cache \
    --no-configuration \
    --warning \
    --exclude=vendor \
    --exclude=node_modules \
    --extensions=php \
    --jobs=10

# or

docker run --rm -v $(pwd):/src iermentraut/phplint:3.0.3-alpine \
    -vvv \
    -c /src/.phplint.yml
⁠Github Action
Coming soon...
⁠GitLab CI
Coming soon...

Tag summary

Content type

Image

Digest

Size

29.2 MB

Last updated

almost 5 years ago

docker pull iermentraut/phplint:3.0.3-alpine