Skip to content

balthild/php-cs-fixer-lsp

Repository files navigation

PHP CS Fixer Language Server

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages