@phoenix-plugin-registry/mikaeljorhult.brackets-php-lint-tools
v0.1.11
Published
Analyze and lint PHP using several code analysis tools. Please note that this extension needs PHP to be installed on your machine to work properly.
Downloads
7
Readme
Brackets PHP Code Quality Tools
Brackets/Edge Code extension that lint PHP files using several code analysis tools.
Requirements
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.
Installation
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.
Install using Extension Manager
- 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.
Install from URL
- 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.
Install from file system
- 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.
Usage
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.
Available tools
- PHP syntax check (php -l)
- PHP CodeSniffer
- PHP Copy/Paste Detector
- PHP Mess Detector