balthild / php-cs-fixer-lsp
Language server for php-cs-fixer
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
pkg:composer/balthild/php-cs-fixer-lsp
Requires
- php: ^8.2
- composer-runtime-api: ^2.2
- amphp/file: ^2.0
- amphp/parallel: ^1.4
- amphp/process: ^1.1
- amphp/sync: ^1.4
- fidry/cpu-core-counter: ^1.3
- friendsofphp/php-cs-fixer: 3.92.5
- phpactor/language-server: dev-bugfix/formatting
- sebastian/diff: ^6.0
- symfony/console: ^7.4
Requires (Dev)
- phpunit/phpunit: ^11.5
README
A Language Server Protocol (LSP) implementation for PHP CS Fixer. Unlike other existing implementations, this one keeps PHP CS Fixer processes running in the background, minimizing the overhead of initialization on each formatting request.
Installation
If you're using the vscode extension, it will download the language server automatically.
If you need the language server for other editors, you can download it manually from releases, or install it with Phive:
# I'm too dumb to know how to use GPG, so ¯\_(ツ)_/¯
phive install balthild/php-cs-fixer-lsp --force-accept-unsigned
Building from Source
Compile to a PHAR file:
make build
The output binary will be located in the build directory.
Fun Fact
This project itself does not use PHP CS Fixer but Mago. If you don't need the fine-grained control of PHP CS Fixer, give Mago a try because it's fast as ass.