Brackets/Edge Code extension that lint PHP files using several code analysis tools.
Please note that this extension uses the PHP executable to run its analysis tools so PHP must be installed on your machine and available globally.
You may download and install this extension in one of three ways. Using Extension Manager to find it through the extension registry you always find the latest stable release conveniently within Brackets.
You can also get the latest work-in-progress version by downloading or installing the extension directly from the repository. This allows you to try new features that might not have been tested properly yet.
- Open the the Extension Manager from the File menu.
- Click the Available tab i upper left corner.
- Find PHP Code Quality Tools in list of extensions (use the search field to filter the list).
- Click Install.
- Open the the Extension Manager from the File menu.
- Click on Install form URL...
- Copy and paste following URL in the text field:
https://github.com/mikaeljorhult/brackets-php-code-quality-tools
- Click Install.
- Download this extension using the ZIP button and unzip it.
- Copy it in Brackets'
/extensions/user
folder by selecting Show Extension Folder in the Help menu. - Reload Brackets.
Whenever a PHP file is opened or saved the selected tools will automatically analyze it and give you a list of detected errors and warnings through Brackets own lint pane.
What tools are used and settings for these may be set in the extension settings by going to View > PHP Code Quality Tools.
- PHP syntax check (php -l)
- PHP CodeSniffer
- PHP Copy/Paste Detector
- PHP Mess Detector