https://github.com/firehed/php-lsp
https://github.com/firehed/php-lsp
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/firehed/php-lsp
- Owner: Firehed
- License: mit
- Created: 2026-02-24T23:56:18.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-07-03T23:44:19.000Z (about 1 month ago)
- Last Synced: 2026-07-04T00:24:04.262Z (about 1 month ago)
- Language: PHP
- Size: 689 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 43
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-lsp
A minimal Language Server Protocol (LSP) server for PHP.
## Requirements
- PHP 8.3+
## Installation
```bash
composer require firehed/php-lsp
```
## Usage
The server communicates via stdio:
```bash
./vendor/bin/php-lsp
```
## Current Capabilities
- **Completion** - Member access (`$this->`, `$var->`), static access (`Class::`), `new` expressions, function calls, variable names
- **Hover** - Type information and docblocks for methods, properties, functions, and classes
- **Go to Definition** - Jump to method, property, function, and class definitions
- **Signature Help** - Parameter hints when calling functions and methods
## Development
```bash
# Install dependencies
composer install
# Generate test fixture autoload
composer dump-autoload --working-dir=tests/Fixtures
# Run tests and static analysis
composer check
# Run just tests
composer phpunit
# Run just static analysis
composer phpstan
```
## Editor Integration
See the [docs](docs/) directory for editor-specific setup guides.
## License
MIT