This plugin provides support for the PHP CS Fixer. You can run fix command with this plugin.
https://github.com/FriendsOfPHP/PHP-CS-Fixer
- 1.x
- 2.x (v0.6.0)
- NetBeans 8.2+
- fix
- fix --dry-run
- self-update
- Run commands
- Run on Save
Tools > Options > PHP > Framework & Tools > PHP CS Fixer
- set PHP CS Fixer path
- select a version
- set fix command options
project properties > PHP CS Fixer
- If you would like to use settings each projects, please, check
use project settings
If you would like to use some options, please check the custom checkbox, then please add them to it.
e.g. --cache-file=/path/to/.php_cs.cache
If you would like to avoid showing the output window, please uncheck it. (Checked by default)
If you would like to run the self-update command on boot, please check it. (Unchecked by default)
- Right-click
- Project
- Directory
- File
- Editor
- PHP CS Fixer
- fix
- fix --dry-run
- self-update
- https://plugins.netbeans.apache.org/catalogue/?id=36
- https://github.com/junichi11/netbeans-php-cs-fixer-plugin/releases
- Run on save feature may not work sometimes. Now after 1 second, the command is run. But I don't have another idea at the moment, sorry.
The Apache License, Version 2.0
Copyright 2022 junichi11.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.