PHPackages                             laravel/lsp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. laravel/lsp

ActiveProject[Framework](/categories/framework)

laravel/lsp
===========

The Laravel language server.

v0.0.29(2w ago)186668↑12450%3[4 issues](https://github.com/laravel/lsp/issues)[5 PRs](https://github.com/laravel/lsp/pulls)MITPHPPHP ^8.2.0CI passing

Since May 14Pushed 2w ago1 watchersCompare

[ Source](https://github.com/laravel/lsp)[ Packagist](https://packagist.org/packages/laravel/lsp)[ Docs](https://github.com/laravel/lsp)[ RSS](/packages/laravel-lsp/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (10)Dependencies (16)Versions (30)Used By (0)

Introduction
------------

[](#introduction)

The Laravel language server provides framework-aware editor features for Laravel applications. It powers code completions, hover information, diagnostics, document links, go-to definition, and quick fixes for Laravel and Blade code.

Installation
------------

[](#installation)

Install Laravel LSP globally with Composer:

```
composer global require laravel/lsp
```

Make sure Composer's global vendor bin directory is on your `PATH`.

Editor Usage
------------

[](#editor-usage)

The server communicates over stdio. Configure your editor to launch the command from the Laravel project root whenever possible.

### Sublime Text

[](#sublime-text)

Install and configure the official [Laravel Sublime Text extension](https://github.com/laravel/sublime-extension).

### Zed

[](#zed)

Install and configure the official [Laravel Zed extension](https://github.com/laravel/zed-extension).

### VS Code

[](#vs-code)

Install and configure the official [Laravel VS Code extension](https://github.com/laravel/vs-code-extension).

### Cursor

[](#cursor)

Install and configure the official [Laravel VS Code extension](https://github.com/laravel/vs-code-extension), which is compatible with Cursor.

### Neovim

[](#neovim)

Neovim 0.11+ is required. Add a custom LSP configuration:

```
vim.lsp.config("laravel_lsp", {
    cmd = { "laravel-lsp" },
    filetypes = { "php", "blade" },
    root_markers = { "artisan", "composer.json", ".git" },
})

vim.lsp.enable("laravel_lsp")
```

### OpenCode

[](#opencode)

Enable LSP support in `opencode.json` and add Laravel LSP as a custom server:

```
{
    "$schema": "https://opencode.ai/config.json",
    "lsp": {
        "laravel-lsp": {
            "command": ["laravel-lsp"],
            "extensions": [".php", ".blade.php"]
        }
    }
}
```

Features
--------

[](#features)

AreaCapabilitiesRoutesCompletions, hovers, diagnostics, document linksViews and BladeCompletions, hovers, diagnostics, links, fixesTranslationsKey, locale, and parameter completions; hoversConfigKey completions, hovers, diagnostics, linksEnvironment variablesCompletions, hovers, diagnostics, links, fixesAssets and MixCompletions, hovers, diagnostics, linksMiddlewareCompletions, hovers, diagnostics, linksInertiaPage and property completions, links, diagnosticsLivewire componentsCompletions, hovers, linksAuth and policiesCompletions, hovers, diagnostics, linksContainer bindingsCompletions, hovers, diagnostics, linksValidation rulesCompletionsController actionsCompletions, diagnostics, linksEloquentCompletionsConfiguration
-------------

[](#configuration)

Editor clients pass configuration through the LSP `initializationOptions` object. All options are optional.

### Server Options

[](#server-options)

OptionTypeDefaultDescription`phpEnvironment``string``"auto"`Select the environment used to detect the PHP command for indexing project data.`phpCommand``string[]`Detected from `phpEnvironment`Use an explicit command and arguments, such as `["php"]` or `["./vendor/bin/sail", "php"]`.`definitionProvider``boolean``true`Advertise definition support to the editor. Definitions are resolved from enabled document link options.`pestGenerateDocBlocks``boolean``true`Generate Pest helper docblocks and keep them updated when tests or Composer autoload files change.`pestHelperFilePath``string``"storage/framework/testing/_pest.php"`Set the Pest helper output path relative to the Laravel project root.The `phpEnvironment` option controls which PHP command is used when the server runs project data scripts. It accepts these values:

ValuePHP command behavior`auto`Try Herd, Valet, Sail, Lando, DDEV, then local PHP`herd`Use `herd which-php``valet`Use `valet which-php``sail`Use `./vendor/bin/sail php` when Sail is running`lando`Use `lando php` when available`ddev`Use `ddev php` when available`local`Use the local PHP binary resolved from `php -r 'echo PHP_BINARY;'`If detection fails, or an unknown value is provided, the server falls back to `php`.

When `phpCommand` is a non-empty array, it takes precedence over `phpEnvironment`.

### Feature Options

[](#feature-options)

Every feature option is a boolean and defaults to `true`. Set an option to `false` to disable that capability for the corresponding Laravel feature.

FeatureCompletionDiagnosticsHoverDocument linksCode actionsApplication bindings`appBindingCompletion``appBindingDiagnostics``appBindingHover``appBindingLink`—Assets`assetCompletion``assetDiagnostics`—`assetLink`—Authorization`authCompletion``authDiagnostics``authHover``authLink`—Blade components`bladeComponentCompletion`—`bladeComponentHover``bladeComponentLink`—Config`configCompletion``configDiagnostics``configHover``configLink`—Controller actions`controllerActionCompletion``controllerActionDiagnostics`—`controllerActionLink`—Environment variables`envCompletion``envDiagnostics``envHover``envLink``envViteQuickFix`Inertia`inertiaCompletion``inertiaDiagnostics``inertiaHover``inertiaLink`—Livewire components`livewireComponentCompletion`—`livewireComponentHover``livewireComponentLink`—Middleware`middlewareCompletion``middlewareDiagnostics``middlewareHover``middlewareLink`—Mix assets`mixCompletion``mixDiagnostics``mixHover``mixLink`—Path helpers———`pathsLink`—Routes`routeCompletion``routeDiagnostics``routeHover``routeLink`—Storage disks`storageCompletion``storageDiagnostics`—`storageLink`—Translations`translationCompletion``translationDiagnostics``translationHover``translationLink`—Views`viewCompletion``viewDiagnostics``viewHover``viewLink`—Supported Platforms
-------------------

[](#supported-platforms)

The following platforms are supported:

- macOS arm64 and x64
- Linux arm64 and x64
- Windows x64

Contributing
------------

[](#contributing)

Thank you for considering contributing to the Laravel Sublime Text extension! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).

Code of Conduct
---------------

[](#code-of-conduct)

In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](https://github.com/laravel/sublime-extension/security/policy) on how to report security vulnerabilities.

License
-------

[](#license)

The Laravel Sublime Text extension is open-sourced software licensed under the [MIT license](https://opensource.org/license/mit).

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance96

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Recently: every ~10 days

Total

27

Last Release

16d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/463230?v=4)[Taylor Otwell](/maintainers/taylorotwell)[@taylorotwell](https://github.com/taylorotwell)

---

Top Contributors

[![TitasGailius](https://avatars.githubusercontent.com/u/12625773?v=4)](https://github.com/TitasGailius "TitasGailius (88 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (6 commits)")[![joetannenbaum](https://avatars.githubusercontent.com/u/2702148?v=4)](https://github.com/joetannenbaum "joetannenbaum (1 commits)")[![N1ebieski](https://avatars.githubusercontent.com/u/14810714?v=4)](https://github.com/N1ebieski "N1ebieski (1 commits)")[![nunomaduro](https://avatars.githubusercontent.com/u/5457236?v=4)](https://github.com/nunomaduro "nunomaduro (1 commits)")

---

Tags

phplaravelLSPLanguage server

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/laravel-lsp/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-lsp/health.svg)](https://phpackages.com/packages/laravel-lsp)
```

###  Alternatives

[pestphp/pest-plugin-laravel

The Pest Laravel Plugin

22959.2M13.6k](/packages/pestphp-pest-plugin-laravel)[dragon-code/support

Support package is a collection of helpers and tools for any project.

2310.7M115](/packages/dragon-code-support)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

12115.1k55](/packages/kompo-kompo)[tomatophp/filament-cms

Full CMS System with support of importing integrations and multi meta functions

12112.8k4](/packages/tomatophp-filament-cms)[gdg-tangier/cloud-pubsub

Google Cloud pub-sub for laravel

5058.9k](/packages/gdg-tangier-cloud-pubsub)[hypervel/framework

The Hypervel framework.

1119.1k13](/packages/hypervel-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
