{"id":42198365,"url":"https://github.com/polylang/polylang-cs","last_synced_at":"2026-01-27T00:20:40.798Z","repository":{"id":47167684,"uuid":"398259507","full_name":"polylang/polylang-cs","owner":"polylang","description":"Polylang Coding Standards is a ruleset for code quality tools to be used in WP Syntex's projects.","archived":false,"fork":false,"pushed_at":"2022-08-26T10:09:07.000Z","size":8,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-19T04:36:39.564Z","etag":null,"topics":["php","phpcs-standard","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/polylang.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}},"created_at":"2021-08-20T11:51:54.000Z","updated_at":"2021-10-20T13:00:10.000Z","dependencies_parsed_at":"2022-09-16T08:01:37.735Z","dependency_job_id":null,"html_url":"https://github.com/polylang/polylang-cs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/polylang/polylang-cs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polylang%2Fpolylang-cs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polylang%2Fpolylang-cs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polylang%2Fpolylang-cs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polylang%2Fpolylang-cs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polylang","download_url":"https://codeload.github.com/polylang/polylang-cs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polylang%2Fpolylang-cs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28792793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"last_error":"SSL_read: 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":["php","phpcs-standard","wordpress"],"created_at":"2026-01-27T00:20:40.072Z","updated_at":"2026-01-27T00:20:40.759Z","avatar_url":"https://github.com/polylang.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polylang Coding Standards\n\n[![Version](https://img.shields.io/badge/packagist-dev--main-blue)](https://packagist.org/packages/wpsyntex/polylang-cs)\n[![License: MIT](https://img.shields.io/github/license/polylang/polylang-cs)](https://github.com/polylang/polylang-cs/blob/main/LICENSE)\n\nPolylang Coding Standards is a ruleset for code quality tools to be used in WP Syntex's projects.\n\n## Installation\n\nStandards are provided as a [Composer](https://getcomposer.org/) package and can be installed with:\n\n```bash\ncomposer require --dev wpsyntex/polylang-cs:dev-main\n```\n\n## PHP Code Sniffer\n\nSet of [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) rules.\n\nThe following rulesets are included:\n\n- Several custom sniffs mainly focused on naming conventions,\n- [NeutronStandard](https://github.com/Automattic/phpcs-neutron-standard),\n- [PHPCompatibilityWP](https://github.com/PHPCompatibility/PHPCompatibilityWP) (for PHP and WP version),\n- [Suin](https://github.com/suin/phpcs-psr4-sniff) (for PSR-4),\n- [WordPress](https://github.com/WordPress/WordPress-Coding-Standards),\n- [WordPressVIPMinimum](https://github.com/Automattic/VIP-Coding-Standards).\n\nExample for your `phpcs.xml.dist` file:\n\n```xml\n\u003c?xml version=\"1.0\"?\u003e\n\u003cruleset xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" name=\"Polylang Foobar\" xsi:noNamespaceSchemaLocation=\"https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd\"\u003e\n    \u003cdescription\u003eCoding standards for Polylang Foobar.\u003c/description\u003e\n\n    \u003carg value=\"p\"/\u003e\u003c!-- Shows progress. --\u003e\n    \u003carg name=\"colors\"/\u003e\u003c!-- Shows results with colors. --\u003e\n    \u003carg name=\"extensions\" value=\"php\"/\u003e\u003c!-- Limits to PHP files. --\u003e\n\n    \u003cfile\u003e.\u003c/file\u003e\n\n    \u003c!-- Our own ruleset. --\u003e\n    \u003crule ref=\"Polylang\"\u003e\n        \u003cexclude name=\"Squiz.PHP.CommentedOutCode.Found\"/\u003e\n        \u003cexclude name=\"WordPress.PHP.DiscouragedPHPFunctions.serialize_serialize\"/\u003e\n    \u003c/rule\u003e\n\n    \u003c!-- Run against the PHPCompatibility ruleset: PHP 5.6 and higher + WP 5.4 and higher. --\u003e\n    \u003cconfig name=\"testVersion\" value=\"5.6-\"/\u003e\n    \u003cconfig name=\"minimum_supported_wp_version\" value=\"5.4\"/\u003e\n\n    \u003c!-- Run against the PSR-4 ruleset. --\u003e\n    \u003c!-- https://github.com/suin/phpcs-psr4-sniff --\u003e\n    \u003carg name=\"basepath\" value=\".\"/\u003e\n\u003c/ruleset\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolylang%2Fpolylang-cs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolylang%2Fpolylang-cs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolylang%2Fpolylang-cs/lists"}