{"id":23274178,"url":"https://github.com/pbwebmedia/pbweb-coding-standard","last_synced_at":"2025-04-06T10:45:09.159Z","repository":{"id":57036991,"uuid":"82560485","full_name":"PBWebMedia/pbweb-coding-standard","owner":"PBWebMedia","description":null,"archived":false,"fork":false,"pushed_at":"2019-10-24T13:42:01.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T16:27:36.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/PBWebMedia.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":"2017-02-20T13:24:22.000Z","updated_at":"2019-10-24T13:42:03.000Z","dependencies_parsed_at":"2022-08-23T21:00:28.559Z","dependency_job_id":null,"html_url":"https://github.com/PBWebMedia/pbweb-coding-standard","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PBWebMedia%2Fpbweb-coding-standard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PBWebMedia%2Fpbweb-coding-standard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PBWebMedia%2Fpbweb-coding-standard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PBWebMedia%2Fpbweb-coding-standard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PBWebMedia","download_url":"https://codeload.github.com/PBWebMedia/pbweb-coding-standard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247471390,"owners_count":20944154,"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-12-19T20:12:27.776Z","updated_at":"2025-04-06T10:45:09.135Z","avatar_url":"https://github.com/PBWebMedia.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PB Web Media PHPCS coding standard\n\nThis is the PHPCS ruleset we use. It is based on the Symfony2 coding standard provided by Escape Studios and features:\n \n* Rule which requires spaces around string concat (`.`) operator\n* Rule which requires spaces around unary not (`!`) operator\n\nIt also disables some rules which causes the following:\n\n* Space after opening bracket are now allowed (conflicts with spaces around unary not rule, eg.: `some_func( ! $value)`)\n* Function comments are no longer required (PHP7 type hinting fixes this)\n* No need to order class methods by scope\n* Multi line function declaration may be on the following line\n\n## Install globally via composer:\n\nInstall using:\n\n    composer global require pbweb/pbweb-coding-standard\n\nAnd configure phpcs to use the Pbweb standard\n\n    phpcs --config-set installed_paths ${HOME}/.composer/vendor/pbweb/pbweb-coding-standard/,${HOME}/.composer/vendor/escapestudios/symfony2-coding-standard/\n    phpcs --config-set default_standard Pbweb\n\n## Install in your project only:\n\nInstall using:\n\n    composer require pbweb/pbweb-coding-standard\n\n### Phing configuration\n\nExample phing target:\n\n    \u003ctarget name=\"check:cs\" description=\"Checks coding standard.\"\u003e\n        \u003cecho msg=\"Checking coding standard...\" /\u003e\n        \u003cphpcodesniffer standard=\"Pbweb\"\n                        showSniffs=\"true\"\n                        showWarnings=\"true\"\u003e\n            \u003cfileset refid=\"sourcecode\" /\u003e\n            \u003cformatter type=\"checkstyle\" outfile=\"${dir.reports}/checkstyle.xml\" /\u003e\n            \u003cconfig name=\"installed_paths\" value=\"${project.basedir}/vendor/pbweb/pbweb-coding-standard,${project.basedir}/vendor/escapestudios/symfony2-coding-standard\" /\u003e\n        \u003c/phpcodesniffer\u003e\n    \u003c/target\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbwebmedia%2Fpbweb-coding-standard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpbwebmedia%2Fpbweb-coding-standard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbwebmedia%2Fpbweb-coding-standard/lists"}