t3ide/language-server
最新稳定版本:v1.0.0
Composer 安装命令:
composer require t3ide/language-server
包简介
Language Server Protocol runtime and infrastructure for PHP
README 文档
README
t3ide/language-server is a PHP library that provides JSON-RPC and Language Server Protocol runtime infrastructure.
It is designed as a reusable foundation for building and operating LSP servers in PHP.
What it provides
- JSON-RPC 2.0 message parsing and serialization
- stdio and socket server integration
- request/notification dispatch pipeline with middleware
- request and event dispatch strategies
- client proxy APIs (
window,workspace, diagnostics, work progress) - cancellation-aware request handling
- server runtime stats helpers
Package layout
lib/JsonRpc/- transport, request/response objects, client/server session handlinglib/Core/Dispatcher/- method/event dispatch strategieslib/Core/Middleware/- request pipeline middlewarelib/Handler/- built-in protocol handlerstests/Integration/- integration tests for pipeline, middleware, dispatcher, and handlers
Requirements
- PHP 8.2+
t3ide/language-server-protocol
Installation
composer require t3ide/language-server
Development
Install dependencies:
composer install
Run tests:
./vendor/bin/phpunit
Run static analysis:
./vendor/bin/phpstan analyse -c phpstan.neon
Run coding standards check:
./vendor/bin/php-cs-fixer fix --config .php-cs-fixer.php --dry-run --diff
License
MIT. See LICENSE.md.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-22