{"id":23148449,"url":"https://github.com/shopiqo/docker-phplint","last_synced_at":"2025-04-04T14:10:29.597Z","repository":{"id":46028904,"uuid":"428455949","full_name":"shopiqo/docker-phplint","owner":"shopiqo","description":"Tiny Alpine-based dockerized version of Composer package overtrue/phplint to use with pre-commit, Github Actions, GitLab CI and many others.","archived":false,"fork":false,"pushed_at":"2021-11-19T22:30:12.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T23:33:43.008Z","etag":null,"topics":["coding-standards","continuous-integration","docker","dockerfile","linter","php","pre-commit","static-analysis"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shopiqo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-15T23:42:58.000Z","updated_at":"2023-02-05T14:39:49.000Z","dependencies_parsed_at":"2022-07-26T05:32:42.797Z","dependency_job_id":null,"html_url":"https://github.com/shopiqo/docker-phplint","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopiqo%2Fdocker-phplint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopiqo%2Fdocker-phplint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopiqo%2Fdocker-phplint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopiqo%2Fdocker-phplint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shopiqo","download_url":"https://codeload.github.com/shopiqo/docker-phplint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190257,"owners_count":20898702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coding-standards","continuous-integration","docker","dockerfile","linter","php","pre-commit","static-analysis"],"created_at":"2024-12-17T17:11:32.518Z","updated_at":"2025-04-04T14:10:29.578Z","avatar_url":"https://github.com/shopiqo.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHPLint Docker\n\n[![GitHub](https://badgen.net/badge/icon/github?icon=github\u0026label)](https://github.com/iermentraut/docker-phplint)\n![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/iermentraut/docker-phplint/ci/master)\n![GitHub](https://img.shields.io/github/license/iermentraut/docker-phplint)\n\n## Description\n\nTiny Alpine-based dockerized version of Composer package [overtrue/phplint](https://github.com/overtrue/phplint) \nto use with `pre-commit`, `Github Actions`, `GitLab CI` and many others.\n\n## Supported tags\n\n[![Docker](https://badgen.net/badge/icon/docker?icon=docker\u0026label)](https://hub.docker.com/r/iermentraut/phplint)\n[![Docker Pulls](https://img.shields.io/docker/pulls/iermentraut/phplint.svg)]()\n\n`alpine` based images:\n\n| Docker tag | PHP Version | Image size |\n|------------|-------------| ------------- |\n| [3.0.3-alpine](https://github.com/iermentraut/docker-phplint/blob/master/Dockerfile) | Latest stable 3.0.3 version | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/iermentraut/phplint/3.0.3-alpine?style=plastic) |\n| [3.0.2-alpine](https://github.com/iermentraut/docker-phplint/blob/master/Dockerfile) | Latest stable 3.0.2 version | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/iermentraut/phplint/3.0.2-alpine?style=plastic) |\n\n## Usage\n\nTo use this image, pull from Docker Hub, run the following command:\n\n```bash\ndocker pull iermentraut/phplint:3.0.3-alpine\n```\n\n### pre-commit (recommended)\n\n```yaml\n---\ndefault_language_version:\n    python: python3\n\ndefault_stages: [commit, push]\n\nrepos:\n    [...]\n    - repo: local\n      hooks:\n          - id: docker-phplint\n            name: docker-phplint\n            language: docker_image\n            entry: iermentraut/phplint:3.0.3-alpine\n            args:\n                - \"--\"\n                - \"/src\"\n            types: [file]\n            files: \\.php\n\n    # or if you don't have a .phplint.yml file:\n\n    - repo: local\n      hooks:\n          - id: docker-phplint\n            name: docker-phplint\n            language: docker_image\n            entry: iermentraut/phplint:3.0.3-alpine\n            args:\n                - --no-cache\n                - --no-configuration\n                - --warning\n                - --exclude=vendor\n                - --exclude=node_modules\n            types: [file]\n            files: \\.php\n    [...]\n```\n\n### Standalone\n\n```bash\ndocker run --rm -v $(pwd):/src iermentraut/phplint:3.0.3-alpine \\\n    -vvv \\\n    --no-cache \\\n    --no-configuration \\\n    --warning \\\n    --exclude=vendor \\\n    --exclude=node_modules \\\n    --extensions=php \\\n    --jobs=10\n\n# or\n\ndocker run --rm -v $(pwd):/src iermentraut/phplint:3.0.3-alpine \\\n    -vvv \\\n    -c /src/.phplint.yml\n```\n\n### Github Action\n\n```\nComing soon...\n```\n\n### GitLab CI\n\n```\nComing soon...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopiqo%2Fdocker-phplint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshopiqo%2Fdocker-phplint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopiqo%2Fdocker-phplint/lists"}