https://github.com/sublimelinter/sublimelinter-php-cs-fixer
SublimeLinter plugin for php-cs-fixer
https://github.com/sublimelinter/sublimelinter-php-cs-fixer
Last synced: 6 months ago
JSON representation
SublimeLinter plugin for php-cs-fixer
- Host: GitHub
- URL: https://github.com/sublimelinter/sublimelinter-php-cs-fixer
- Owner: SublimeLinter
- License: mit
- Created: 2025-02-04T08:54:06.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-10T10:12:59.000Z (12 months ago)
- Last Synced: 2025-05-08T01:48:19.713Z (11 months ago)
- Language: Python
- Size: 44.9 KB
- Stars: 3
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SublimeLinter-php-cs-fixer
==========================
This linter plugin for [SublimeLinter][docs] provides an interface to [php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer). It will be used with files that have the “php” syntax.
The purpose of this plugin is to highlight things that would normally be fixed by running php-cs-fixer on your file. This will allow you to identify code changes that you need to make while coding instead of relying on the tool to do it for you.
## Installation
SublimeLinter 3 must be installed in order to use this plugin.
Please install via [Package Control](https://packagecontrol.io).
Before using this plugin, you must ensure that `php-cs-fixer >= 2.7` is installed on your system, or in your project (via composer).
## Settings
- SublimeLinter settings: http://sublimelinter.com/en/latest/settings.html
- Linter settings: http://sublimelinter.com/en/latest/linter_settings.html
For `"phpcsfixer"` you can optionally specify:
- `"config_file"`: the path to the config file to use (e.g. using `${folder}/path/to/.php-cs-fixer.dist.php`).
- `"version"`: by default PHP-CS-Fixer V3 is used. Set this value to `2` to use V2.