{"id":19120940,"url":"https://github.com/php-actions/phpcs","last_synced_at":"2025-07-01T16:07:18.915Z","repository":{"id":101393447,"uuid":"603148774","full_name":"php-actions/phpcs","owner":"php-actions","description":"Run PHP Code Sniffer tests in Github Actions.","archived":false,"fork":false,"pushed_at":"2025-01-24T09:28:07.000Z","size":18,"stargazers_count":10,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T03:11:41.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-actions.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-02-17T18:08:03.000Z","updated_at":"2025-03-30T13:13:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"82710818-c25e-416f-8d1d-41d6f3c4a5d5","html_url":"https://github.com/php-actions/phpcs","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/php-actions/phpcs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fphpcs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fphpcs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fphpcs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fphpcs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-actions","download_url":"https://codeload.github.com/php-actions/phpcs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fphpcs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262996402,"owners_count":23396903,"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":[],"created_at":"2024-11-09T05:15:32.836Z","updated_at":"2025-07-01T16:07:18.896Z","avatar_url":"https://github.com/php-actions.png","language":"Shell","readme":"\u003cimg src=\"http://159.65.210.101/php-actions.png\" align=\"right\" alt=\"PHP Actions for Github\" /\u003e\n\nRun PHP Code Sniffer tests in Github Actions.\n=============================================\n\nPHP_CodeSniffer is a script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard - an essential development tool that ensures your code remains clean and consistent.\n\nCommon standards that can be checked include:\n\n+ Use of camel case in variable, function, class names\n+ Indentation rules, such as using tabs vs. spaces\n+ Forbidden functions, such as `die()`\n+ Checking that PHP files are side-effect-free\n\nUsage\n-----\n\n```yaml\nname: CI\n\non: [push]\n\njobs:\n  build-and-test:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v3\n\n      - name: Composer install\n        uses: php-actions/composer@v6\n\n      - name: PHP Code Sniffer\n        uses: php-actions/phpcs@v1\n        with:\n          php_version: 8.1\n          path: src/\n          standard: phpcs.xml\n```\n\nVersion numbers\n---------------\n\nThis action is released with semantic version numbers, but also tagged so the latest major release's tag always points to the latest release within the matching major version.\n\nPlease feel free to use uses: php-actions/phpcs@v1 to always run the latest version of v1, or uses: php-actions/phpcs@v1.0.0 to specify the exact release.\n\nInputs\n------\n\nThe following configuration options are available:\n\n+ `version` - What version of PHPCS to use\n+ `php_version` - What version of PHP to use\n+ `vendored_phpcs_path` - Path to a vendored phpcs binary\n+ `path` - One or more files and/or directories to check\n+ `standard` - The name or path of the coding standard to use\n+ `sniffs` - A comma separated list of sniff codes to include checking (all sniffs must be part of the specified standard)\n+ `exclude` - A comma separated list of sniff codes to exclude from checking (all sniffs must be part of the specified standard)\n+ `ignore` - A comma separated list of patterns to ignore files and directories\n+ `tab_width` - The number of spaces each tab represents\n+ `report` - Print either the \"full\", \"xml\", \"checkstyle\", \"csv\", \"json\", \"junit\", \"emacs\", \"source\", \"summary\", \"diff\", \"svnblame\", \"gitblame\", \"hgblame\" or \"notifysend\" report, or specify the path to a custom report class, (the \"full\" report is printed by default)\n+ `report_file` - Write the report to the specified file path\n+ `report_width` - How many columns wide screen reports should be printed or set to \"auto\" to use current screen width, where supported\n+ `basepath` - A path to strip from the front of file paths inside reports\n+ `bootstrap` - A comma separated list of files to run before processing begins\n+ `encoding` - The encoding of the files being checked (default is utf-8)\n+ `extensions` - \"A comma separated list of file extensions to check. The type of the file can be specified using: ext/type e.g., module/php,es/js\"\n+ `severity` - The minimum severity required to display an error or warning\n+ `error_severity` - The minimum severity required to display an error\n+ `warning_severity` - The minimum severity required to display a warning\n+ `ignore_warnings_on_exit` - Exit with a zero error code despite the presence of warnings (1 = true, default 0 = false).\n+ `ignore_errors_on_exit` - xit with a zero error code despite the presence of errors (1 = true, default 0 = false).\n+ `args` - Extra arguments to pass to the phpcs binary\n\nIf you require other configurations of PHPMD, please request them in the [Github issue tracker].\n\n*****\n\nIf you found this repository helpful, please consider [sponsoring the developer][sponsor].\n\n[Github issue tracker]: https://github.com/php-actions/phpcs/issues\n[sponsor]: https://github.com/sponsors/g105b\n","funding_links":["https://github.com/sponsors/g105b"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-actions%2Fphpcs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-actions%2Fphpcs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-actions%2Fphpcs/lists"}