{"id":21599209,"url":"https://github.com/gridonic/coding","last_synced_at":"2025-08-18T08:11:09.216Z","repository":{"id":20260483,"uuid":"23533371","full_name":"gridonic/coding","owner":"gridonic","description":"🖥 Our coding manual.","archived":false,"fork":false,"pushed_at":"2019-10-18T14:03:51.000Z","size":76,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-11T01:11:18.913Z","etag":null,"topics":["coding","coding-conventions","coding-standards","coding-style","gridonic","guidelines","how-to"],"latest_commit_sha":null,"homepage":"https://gridonic.ch","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/gridonic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-01T06:55:21.000Z","updated_at":"2023-09-08T16:50:16.000Z","dependencies_parsed_at":"2022-08-21T19:21:04.648Z","dependency_job_id":null,"html_url":"https://github.com/gridonic/coding","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gridonic/coding","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridonic%2Fcoding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridonic%2Fcoding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridonic%2Fcoding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridonic%2Fcoding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gridonic","download_url":"https://codeload.github.com/gridonic/coding/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridonic%2Fcoding/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270962391,"owners_count":24675965,"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-08-18T02:00:08.743Z","response_time":89,"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","coding-conventions","coding-standards","coding-style","gridonic","guidelines","how-to"],"created_at":"2024-11-24T18:14:39.761Z","updated_at":"2025-08-18T08:11:09.190Z","avatar_url":"https://github.com/gridonic.png","language":"PHP","readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://gridonic.github.io/assets/images/logos/coding.svg\" alt=\"Coding\" width=\"128\"\u003e\u003c/p\u003e\n\n# Coding manual\n\nOur coding manual represents everything we need to know in order to keep a *consistent* coding style and make \ncollaboration a *breeze*.\n\n\n## Table of contents\n\n1. [Guidelines]\n1. [IDEs / Editors]\n1. [Linters]\n1. [Recipes]\n1. [Best practices]\n\n## Guidelines\n\nSee the [`./guidelines`](./guidelines) folder for a collection of language specific coding guidelines.\n\n## IDEs / Editors\n\nTo maintain consistent coding styles between different editors and IDEs, we use [EditorConfig].\n\nHave a look at the [`.editorconfig`](./.editorconfig) file for any details.\n\n## Linters\n\n\u003e […] generically, lint or a **linter** is any tool that flags suspicious usage in software written in any \n[computer language]. […] Lint-like tools generally perform [static analysis] of source code.\u003csup\u003e1\u003c/sup\u003e\n\nCurrently we have configuration files prepared for those linters:\n\n* [ESLint] ([`.eslintrc`](./.eslintrc))\n* [stylelint] ([`.stylelintrc`](./.stylelintrc))\n* [PHP_CodeSniffer] for Drupal 8 ([`phpcs.xml.dist`](guidelines/php/drupal/phpcs.xml.dist))\n\n##  \n\u003csup\u003e1\u003c/sup\u003e https://en.wikipedia.org/wiki/Lint_(software)\n\n## Recipes\n\nHave a look at the repository’s [Wiki] for a collection of recipes regarding specific coding challenges / topics.\n\n## Best practices\n\nWant to know how we write *constructors*, handle *state delegation* or use the *[factory pattern]*? Or what’s in \ngeneral the best practice to write a, b or c? Have a look at our [CodePen] account or check out the [Wiki].\n\n##  \n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://gridonic.ch\"\u003egridonic.ch\u003c/a\u003e ・\n  \u003ca href=\"https://gridonic.github.io\"\u003egridonic.github.io\u003c/a\u003e ・\n  \u003ca href=\"https://twitter.com/gridonic\"\u003e@gridonic\u003c/a\u003e\n\u003c/p\u003e\n\n[Guidelines]: #guidelines\n[Linters]: #linters\n[IDEs / Editors]: #ides--editors\n[Recipes]: #recipes\n[Best practices]: #best-practices\n[Wiki]: https://github.com/gridonic/coding/wiki\n[computer language]: https://en.wikipedia.org/wiki/Computer_language\n[static analysis]: https://en.wikipedia.org/wiki/Static_code_analysis\n[ESLint]: http://eslint.org/\n[stylelint]: https://stylelint.io/\n[PHP_CodeSniffer]: https://github.com/squizlabs/PHP_CodeSniffer\n[EditorConfig]: http://editorconfig.org/\n[CodePen]: https://codepen.io/gridonic/collections/\n[factory pattern]: https://en.wikipedia.org/wiki/Factory_method_pattern\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgridonic%2Fcoding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgridonic%2Fcoding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgridonic%2Fcoding/lists"}