ralfmaxxx / phpstorm_configurator
Configure you phpstorm based on one file
Installs: 1 782
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 2
Open Issues: 1
Requires
- php: >=5.6
- symfony/config: ^2.6|^3.0
- symfony/console: ^2.6|^3.0
- symfony/yaml: ^2.6|^3.0
Requires (Dev)
- behat/behat: ^3.0
- phing/phing: ^2.14
- phpmd/phpmd: ^2.4
- phpspec/phpspec: ^2.5
- squizlabs/php_codesniffer: ^2.6
This package is auto-updated.
Last update: 2024-10-26 06:11:40 UTC
README
Requirements
PHP>=5.6
Usage
Now it is easy to prepare and share your phpstorm configuration for projects.
Just create simple phpstorm.yml which contains:
settings:
inspection: ~
indent: ~
Settings have default values as is shown below:
settings:
inspection:
phpmd: "phpmd.xml"
phpcs: "ruleset.xml"
indent:
php: 4
js: 4
gherkin: 4
yml: 4
json: 4
css: 4
scss: 4
html: 4
xml: 4
You can easily overwrite them in your phpstorm.yml file.
Based on this file, just run from directory where phpstorm.yml is placed:
phpstorm-configurator configure:inspections
phpstorm-configurator configure:indents
Important
It works properly only on Mac/Linux and tested with PhpStorm 9 and PhpStorm 2016.(1,2,3).
For now .idea directory has to exist.
If your settings are not imported, please restart IDE.
Inspections will be imported only if your files have proper structure.
For now phpcs file has to be named "ruleset.xml". Otherwise it won't be used by PhpStorm.