{"id":20261434,"url":"https://github.com/haruncpi/wordpress-cs","last_synced_at":"2025-10-09T14:34:27.320Z","repository":{"id":99629656,"uuid":"537697595","full_name":"haruncpi/wordpress-cs","owner":"haruncpi","description":"WordPress Coding Standard Setup Guideline","archived":false,"fork":false,"pushed_at":"2022-10-08T04:26:35.000Z","size":8,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T10:45:50.542Z","etag":null,"topics":["coding-standard","phpcs","wordpress","wpcs"],"latest_commit_sha":null,"homepage":"","language":null,"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/haruncpi.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}},"created_at":"2022-09-17T04:28:46.000Z","updated_at":"2024-05-12T14:57:47.000Z","dependencies_parsed_at":"2023-07-31T07:45:31.037Z","dependency_job_id":null,"html_url":"https://github.com/haruncpi/wordpress-cs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/haruncpi/wordpress-cs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haruncpi%2Fwordpress-cs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haruncpi%2Fwordpress-cs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haruncpi%2Fwordpress-cs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haruncpi%2Fwordpress-cs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haruncpi","download_url":"https://codeload.github.com/haruncpi/wordpress-cs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haruncpi%2Fwordpress-cs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001527,"owners_count":26083119,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["coding-standard","phpcs","wordpress","wpcs"],"created_at":"2024-11-14T11:25:30.877Z","updated_at":"2025-10-09T14:34:27.303Z","avatar_url":"https://github.com/haruncpi.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# WPCS Setup Guideline\n\n### 1. Install composer packages\n```    \ncomposer global require squizlabs/php_codesniffer\n```\n```\ncomposer global require wp-coding-standards/wpcs\n```\n    \n**Installation Test**: Run the below command for checking `phpcs` is installed correctly.\n\n``` \nphpcs -i\n```\n\n**Problem Fix:** command not found: `phpcs`\n\nTo fix this problem, add the `phpcs` path to your PATH variable.\n\n`phpcs` and `phpcbf` installed path.  \n```\n/Users/your_username/.composer/vendor/bin/phpcs\n```\n```\n/Users/your_username/.composer/vendor/bin/phpcbf  \n```\n**[Note]** change  `your_username`  \n### 2. Set WordPress as default coding standard\n[Note] change `your_username`\n    \n```\nphpcs --config-set installed_paths /Users/your_username/.composer/vendor/wp-coding-standards/wpcs\n```\n\n**Default Standard**\nSet default CS\n\n```\nphpcs --config-set default_standard WordPress\n```\n\n**Installation Test**  \n    \n```\nphpcs --config-show\n```\n\n### 3. To check a php file, run\n    \n```\nphpcs abc.php\n```\n\n### 4. Run `phpcbf` for automatic fix, run\n\n```\nphpcbf abc.php\n```\n\n[Read about PHP CS for WordPress](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharuncpi%2Fwordpress-cs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharuncpi%2Fwordpress-cs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharuncpi%2Fwordpress-cs/lists"}