定制 adrum/lsif-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

adrum/lsif-php

最新稳定版本:v1.0.2

Composer 安装命令:

composer require adrum/lsif-php

包简介

Language Server Indexing Format (LSIF) generator for PHP

关键字:

README 文档

README

CI Coverage License: MIT Packagist Version PHP Version Docker Image Version Docker Image Size

Language Server Indexing Format (LSIF) generator for PHP

This repository is indexed using itself and available on Sourcegraph.

Requirements

lsif-php needs the composer.json and composer.lock file of the project to index present in the current directory. It uses the autoload and autoload-dev properties to determine which directories to scan.

Usage

To use a self-hosted Sourcegraph instance, set the SRC_ENDPOINT and SRC_ACCESS_TOKEN environment variables.

GitHub Actions

Add the following job to your workflow:

on:
  - push

jobs:
  lsif-php:
    runs-on: ubuntu-latest
    container: adrum/lsif-php:main
    steps:
      - uses: actions/checkout@v3
      - name: Generate LSIF data
        run: lsif-php
      - name: Apply container owner mismatch workaround
        run: |
          # FIXME: see https://github.com/actions/checkout/issues/760
          git config --global --add safe.directory ${GITHUB_WORKSPACE}
      - name: Upload LSIF data
        run: src code-intel upload -github-token=${{ secrets.GITHUB_TOKEN }}

GitLab CI/CD

Add the following job to your pipeline:

code_navigation:
  image: adrum/lsif-php:main
  artifacts:
    reports:
      lsif: dump.lsif
  script:
    - lsif-php
    - src code-intel upload

Manual

Install lsif-php with composer and the src binary. Then generate the LSIF data and upload it:

$ composer require --dev adrum/lsif-php
$ vendor/bin/lsif-php
$ src code-intel upload

Acknowledgements

This project is a fork of davidrjenni/lsif-php. Huge thanks to David R. Jenni for creating the original tool and laying the groundwork that made this fork possible.

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 12
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固