The Laravel/Blade lsp provides:
This LSP is still to be considered unstable. If you find issues, you are welcome to provide a issue/pull request with a reproducable example.
Issues without clear steps to reproduce may be closed without answer.
As it is experimental, there is no guarantee whatsoever that this will work. Please always ensure your code is under version control.
Thing may be slow.
PHP 8.0, older versions will NOT work. (not even trying). LARAVEL 8.0, older versions will NOT work.
This LSP is based on php in your runtime. I have not tested this with docker so for now assume it will not work from outside.
Your application needs to be bootable. This LSP will run commands in your codebase to get all the information it needs. (Much like running laravel-ide-helper).
Install Name: laravel-blade syntax
Download the extension from the vscode extensions.
Download the compiled version from the releases then use it to setup the lsp:
This depends on your setup, below are instruction for using it with
Building from source
This LSP is based on the great work in phpactor/language-server
As it is php it actually does not need building, but we can still do this by makeing a phar so it is easier to distribute.
To build the phar you run:
Building the vscode extension
To build the vscode extension we have to build the phar and copy it to the extension's directory:
Then in the
Install npm modules:
Then make the package:
(for me: publish using
This project is based on Laravel Zero
It uses phpactor/language-server for the LSP layer.
Other packages used are: