{"id":41150528,"url":"https://github.com/dbfx/github-phplint","last_synced_at":"2026-01-22T19:05:43.585Z","repository":{"id":150157600,"uuid":"236483408","full_name":"dbfx/github-phplint","owner":"dbfx","description":"Automatically run 'php -l' on all PHP files in a repository with Github Actions","archived":false,"fork":false,"pushed_at":"2024-11-15T02:04:28.000Z","size":25,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-15T03:17:12.530Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"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/dbfx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-01-27T12:15:18.000Z","updated_at":"2024-11-15T02:04:32.000Z","dependencies_parsed_at":"2023-05-17T18:30:30.059Z","dependency_job_id":null,"html_url":"https://github.com/dbfx/github-phplint","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dbfx/github-phplint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbfx%2Fgithub-phplint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbfx%2Fgithub-phplint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbfx%2Fgithub-phplint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbfx%2Fgithub-phplint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbfx","download_url":"https://codeload.github.com/dbfx/github-phplint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbfx%2Fgithub-phplint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28668840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T17:07:18.858Z","status":"ssl_error","status_checked_at":"2026-01-22T17:05:02.040Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-22T19:02:21.967Z","updated_at":"2026-01-22T19:05:43.581Z","avatar_url":"https://github.com/dbfx.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Lint GitHub Action\n\nThis Github Action runs `php -l` on all PHP files found in the current project. It allows you to easily and quickly check for \nany syntax / parse errors in your PHP files on pull requests or pushes. This is especially useful for code that is \nmeant to run on multiple PHP versions.  \n\n---\n\n## Getting Started\n\nUsing this action to check for syntax / parse errors for PHP versions 7.4, 8.0, and 8.4 can be done with the following template:\n\n```\nsteps:\n  - name: Checkout\n    uses: actions/checkout@v4\n    with:\n      fetch-depth: 0\n  - name: PHP Lint 7.4\n    uses: dbfx/github-phplint/7.4@master\n    with:\n      folder-to-exclude: \"! -path \\\"./vendor/*\\\" ! -path \\\"./folder/excluded/*\\\"\"\n  - name: PHP Lint 8.0\n    uses: dbfx/github-phplint/8.0@master\n    with:\n      folder-to-exclude: \"! -path \\\"./vendor/*\\\" ! -path \\\"./folder/excluded/*\\\"\"\n  - name: PHP Lint 8.4\n    uses: dbfx/github-phplint/8.4@master\n    with:\n      folder-to-exclude: \"! -path \\\"./vendor/*\\\" ! -path \\\"./folder/excluded/*\\\"\"\n```\n\n---\n\n## Brand New Setup\n\nIf you have never used github actions, then create a file called phplint.yml in your Git repository in the directory \n.github/workflows. Inside of .github/workflows/phplint.yml put the following text:\n```\nname: PHP Linting\n\non: push\n\njobs:\n  phplint:\n\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n        with:\n          fetch-depth: 0\n      - name: PHP Lint 7.2\n        uses: dbfx/github-phplint/7.2@master\n        with:\n          folder-to-exclude: \"! -path \\\"./vendor/*\\\" ! -path \\\"./folder/excluded/*\\\"\"\n      - name: PHP Lint 7.3\n        uses: dbfx/github-phplint/7.3@master\n        with:\n          folder-to-exclude: \"! -path \\\"./vendor/*\\\" ! -path \\\"./folder/excluded/*\\\"\"\n      - name: PHP Lint 7.4\n        uses: dbfx/github-phplint/7.4@master\n        with:\n          folder-to-exclude: \"! -path \\\"./vendor/*\\\" ! -path \\\"./folder/excluded/*\\\"\"\n      - name: PHP Lint 8.0\n        uses: dbfx/github-phplint/8.0@master\n        with:\n          folder-to-exclude: \"! -path \\\"./vendor/*\\\" ! -path \\\"./folder/excluded/*\\\"\"   \n      - name: PHP Lint 8.1\n        uses: dbfx/github-phplint/8.1@master\n        with:\n          folder-to-exclude: \"! -path \\\"./vendor/*\\\" ! -path \\\"./folder/excluded/*\\\"\"\n      - name: PHP Lint 8.2\n        uses: dbfx/github-phplint/8.2@master\n        with:\n          folder-to-exclude: \"! -path \\\"./vendor/*\\\" ! -path \\\"./folder/excluded/*\\\"\"\n      - name: PHP Lint 8.3\n        uses: dbfx/github-phplint/8.3@master\n        with:\n          folder-to-exclude: \"! -path \\\"./vendor/*\\\" ! -path \\\"./folder/excluded/*\\\"\"\n      - name: PHP Lint 8.4\n        uses: dbfx/github-phplint/8.4@master\n        with:\n          folder-to-exclude: \"! -path \\\"./vendor/*\\\" ! -path \\\"./folder/excluded/*\\\"\"\n```\n\nIf you want to run the lint on Pull Requests instead of pushes change the ```on: push``` to ```on: pull```.\n\nIn the above example, your workflow will run the PHP syntax check with PHP 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, and 8.4. You may remove any of these that do not apply.\n\n---\n\n## Supported versions\n\nRight now there is support for the following PHP versions: \n - 5.5\n - 5.6\n - 7.2\n - 7.3\n - 7.4\n - 8.0\n - 8.1\n - 8.2\n - 8.3\n - 8.4\n \n If you would like to add more submit a PR or an issue. \n \n---\n\n## Ignoring paths\n\nYou can see in the above examples it ignores certain paths. You may add as many as you need by copying the example. \nThe action ignores the folder `vendor` at root of project by default.\n\n---\n\n## Original work\n\nThis is based on PrestaShop's original work https://github.com/PrestaShopCorp/github-action-php-lint. \n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbfx%2Fgithub-phplint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbfx%2Fgithub-phplint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbfx%2Fgithub-phplint/lists"}