{"id":13615996,"url":"https://github.com/mnapoli/hard-mode","last_synced_at":"2025-04-23T12:43:26.976Z","repository":{"id":57018495,"uuid":"171753307","full_name":"mnapoli/hard-mode","owner":"mnapoli","description":"PHP hard mode","archived":false,"fork":false,"pushed_at":"2020-10-12T07:56:19.000Z","size":8,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T14:44:58.559Z","etag":null,"topics":["coding-standard","coding-style","php"],"latest_commit_sha":null,"homepage":"","language":null,"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/mnapoli.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":"2019-02-20T21:38:42.000Z","updated_at":"2023-10-19T14:38:37.000Z","dependencies_parsed_at":"2022-08-22T20:20:27.934Z","dependency_job_id":null,"html_url":"https://github.com/mnapoli/hard-mode","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/mnapoli%2Fhard-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnapoli%2Fhard-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnapoli%2Fhard-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnapoli%2Fhard-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnapoli","download_url":"https://codeload.github.com/mnapoli/hard-mode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250436905,"owners_count":21430584,"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":["coding-standard","coding-style","php"],"created_at":"2024-08-01T20:01:21.987Z","updated_at":"2025-04-23T12:43:26.956Z","avatar_url":"https://github.com/mnapoli.png","language":null,"readme":"## Usage\n\n```\ncomposer require --dev mnapoli/hard-mode\n```\n\nThen write a `.phpcs.xml.dist` file:\n\n```xml\n\u003c?xml version=\"1.0\"?\u003e\n\u003cruleset\u003e\n    \u003carg name=\"basepath\" value=\".\"/\u003e\n\n    \u003cfile\u003esrc\u003c/file\u003e\n    \u003cfile\u003etests\u003c/file\u003e\n\n    \u003crule ref=\"HardMode\"/\u003e\n\u003c/ruleset\u003e\n```\n\nThen run the analysis:\n\n```\nvendor/bin/phpcs\n```\n\nOr using [pretty](https://github.com/mnapoli/pretty):\n\n```\nvendor/bin/pretty\n```\n\n## Fixing errors\n\nRun:\n\n```\nvendor/bin/phpcbf\n```\n\nOr using [pretty](https://github.com/mnapoli/pretty):\n\n```\nvendor/bin/pretty fix\n```\n\n## Advanced configuration\n\nCheck out the [PHP CodeSniffer documentation](https://github.com/squizlabs/PHP_CodeSniffer/wiki) for all the options. You will find below documentation for common scenarios.\n\nTo exclude some files from the analysis:\n\n```xml\n\u003cexclude-pattern\u003etests/Fixtures\u003c/exclude-pattern\u003e\n```\n\nOn large projects you may want to use PHP CodeSniffer's cache:\n\n```xml\n\u003carg name=\"cache\" value=\".phpcs-cache\"/\u003e\n```\n\nRemember to add `.phpcs-cache` to `.gitignore`.\n","funding_links":[],"categories":["Others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnapoli%2Fhard-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnapoli%2Fhard-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnapoli%2Fhard-mode/lists"}