{"id":13562625,"url":"https://github.com/nicwortel/phpstorm-ide-config","last_synced_at":"2026-02-05T05:30:42.470Z","repository":{"id":114591007,"uuid":"20319607","full_name":"nicwortel/phpstorm-ide-config","owner":"nicwortel","description":"My PhpStorm configuration for writing modern PHP code (PSR-12 compatible)","archived":false,"fork":false,"pushed_at":"2024-10-21T12:30:52.000Z","size":71,"stargazers_count":57,"open_issues_count":1,"forks_count":25,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-02T13:20:34.123Z","etag":null,"topics":["code-style","ide","php","phpstorm","phpstorm-configuration","psr-12"],"latest_commit_sha":null,"homepage":"","language":"Hack","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/nicwortel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2014-05-30T06:36:47.000Z","updated_at":"2024-10-21T12:30:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"d600bfef-ddf5-488e-82b4-fe6e0ca1ade4","html_url":"https://github.com/nicwortel/phpstorm-ide-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicwortel%2Fphpstorm-ide-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicwortel%2Fphpstorm-ide-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicwortel%2Fphpstorm-ide-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicwortel%2Fphpstorm-ide-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicwortel","download_url":"https://codeload.github.com/nicwortel/phpstorm-ide-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247057182,"owners_count":20876531,"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":["code-style","ide","php","phpstorm","phpstorm-configuration","psr-12"],"created_at":"2024-08-01T13:01:10.503Z","updated_at":"2026-02-05T05:30:42.432Z","avatar_url":"https://github.com/nicwortel.png","language":"Hack","funding_links":[],"categories":["Hack"],"sub_categories":[],"readme":"# PhpStorm IDE configuration\n\n[![License](https://img.shields.io/github/license/nicwortel/phpstorm-ide-config.svg)](https://github.com/nicwortel/phpstorm-ide-config/blob/master/LICENSE.txt)\n\nThis is my global configuration for [PhpStorm](https://www.jetbrains.com/phpstorm/), my favorite IDE for PHP. I have some custom configuration for code styling, inspections and file templates, and I use\nGit to track these configuration files and to synchronize them between workstations. The code style rules are based on PSR-1, PSR-2 and PSR-12 but I also added some things that are not specified in the PSR guidelines.\n\nFeel free to use or fork this repository. Note that I normally stay up-to-date with the latest PhpStorm version, and I cannot guarantee that this works with older versions.\n\nSome configuration is specifically for the [Php Inspections (EA Extended)](https://github.com/kalessil/phpinspectionsea) plugin. I guess this is ignored when you don't have the plugin.\n\n## Code style settings overview\n\nLanguage          | Standards\n------------------|---------\nPHP               | [PSR-2](http://www.php-fig.org/psr/psr-2/), [PSR-12](https://github.com/php-fig/fig-standards/blob/master/proposed/extended-coding-style-guide.md)\nHTML / Twig       | 4 spaces\nCSS / SCSS / LESS | 2 spaces\nYaml              | 2 spaces\n\n## Installation\n\nBefore you do this, make sure PhpStorm is not running, or it will overwrite the changed files before shutting down.\n\nUse the following commands to go to the config directory, remove some default directories, and pull the files from my repository:\n\n```bash\n# replace with the actual directory name, depending on OS and PhpStorm version (see below).\ncd ~/.config/JetBrains/PhpStorm2020.2\n\n# remove the files and folders that are in this repository\nrm -r codestyles/\nrm -r fileTemplates/\nrm -r inspection/\n\ngit init\ngit remote add origin git@github.com:nicwortel/phpstorm-ide-config.git\ngit fetch\ngit checkout -t origin/master\n```\n\n### Location of the config folder\n\nOS | Syntax | Example\n---|---|---\nLinux | `~/.config/JetBrains/\u003cproduct\u003e\u003cversion\u003e` | `~/.config/JetBrains/PhpStorm2020.2`\nmacOS | `~/Library/Application Support/JetBrains/\u003cproduct\u003e\u003cversion\u003e` | `~/Library/Application Support/JetBrains/PhpStorm2020.2`\nWindows | `%APPDATA%\\JetBrains\\\u003cproduct\u003e\u003cversion\u003e` | `C:\\Users\\JohnS\\AppData\\Roaming\\JetBrains\\PhpStorm2020.2`\n\nSee [Default IDE directories](https://www.jetbrains.com/help/phpstorm/tuning-the-ide.html#default-dirs) for more information about the location of the configuration directory.\n\n### Subdirectories of the config folder\n\nDirectory | Contents\n----------|---------\ncodestyles | Code Style settings (Editor \u003e Code Style)\ncolors | Colors \u0026 Fonts settings (Editor \u003e Colors \u0026 Fonts)\nfileTemplates | File and Code Templates (Editor \u003e File and Code Templates)\nfiletypes | File Types (Editor \u003e File Types)\ninspection | Inspection profiles (Editor \u003e Inspections)\nkeymaps | Keyboard shortcuts (Keymap)\ntemplates | Live templates (Editor \u003e Live Templates)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicwortel%2Fphpstorm-ide-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicwortel%2Fphpstorm-ide-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicwortel%2Fphpstorm-ide-config/lists"}