PHPackages                             adrum/lsif-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. adrum/lsif-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

adrum/lsif-php
==============

Language Server Indexing Format (LSIF) generator for PHP

v1.0.2(1mo ago)014MITPHPPHP ^8.2CI passing

Since Jan 19Pushed 1mo agoCompare

[ Source](https://github.com/adrum/lsif-php)[ Packagist](https://packagist.org/packages/adrum/lsif-php)[ RSS](/packages/adrum-lsif-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (10)Versions (11)Used By (0)

lsif-php [![Open in Gitpod](https://camo.githubusercontent.com/6a4edb76a7e92e0faad09a11e42cba7c39803ee6723f8cb1b801f91113d59695/68747470733a2f2f676974706f642e696f2f627574746f6e2f6f70656e2d696e2d676974706f642e737667)](https://gitpod.io/#https://github.com/adrum/lsif-php)
==============================================================================================================================================================================================================================================================================

[](#lsif-php-)

[![CI](https://github.com/adrum/lsif-php/actions/workflows/ci.yml/badge.svg)](https://github.com/adrum/lsif-php/actions/workflows/ci.yml)[![Coverage](https://camo.githubusercontent.com/1e7403a590bbd0b7342d73032ec4a2fc77edbe902670c89efb4cdb42807d8954/68747470733a2f2f636f6465636f762e696f2f67682f616472756d2f6c7369662d7068702f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d344e5a574346364c5a53)](https://codecov.io/gh/adrum/lsif-php)[![License: MIT](https://camo.githubusercontent.com/00fafaa7355fa36aa24b6b0a298c4b08b435d7a40849c24030b8b0e486adf076/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f616472756d2f6c7369662d706870)](https://github.com/adrum/lsif-php/blob/main/LICENSE)[![Packagist Version](https://camo.githubusercontent.com/813c68e723d0217dea56641f49c29cf62b858f9ef88665ae97c8d7601814d6ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616472756d2f6c7369662d706870)](https://packagist.org/packages/adrum/lsif-php)[![PHP Version](https://camo.githubusercontent.com/ec8feec355ac9c2844bdc97dce8202f4e9820c9b0b495e3748c315db8188e162/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616472756d2f6c7369662d706870)](https://packagist.org/packages/adrum/lsif-php)[![Docker Image Version](https://camo.githubusercontent.com/c745d1b5c336ae9c453778ae08cf3f557e45e2a5e039807f41af40da183757b7/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f762f616472756d2f6c7369662d7068703f6c6162656c3d646f636b6572)](https://hub.docker.com/r/adrum/lsif-php)[![Docker Image Size](https://camo.githubusercontent.com/0aeece5b784b5c2a0eadb920e08de31d024204a11b61243305e37b103539e437/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f696d6167652d73697a652f616472756d2f6c7369662d706870)](https://hub.docker.com/r/adrum/lsif-php)

Language Server Indexing Format (LSIF) generator for PHP

---

This repository is indexed using itself and available on [Sourcegraph](https://sourcegraph.com/github.com/adrum/lsif-php).

Requirements
------------

[](#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`](https://getcomposer.org/doc/04-schema.md#autoload) and [`autoload-dev`](https://getcomposer.org/doc/04-schema.md#autoload-dev)properties to determine which directories to scan.

Usage
-----

[](#usage)

To use a self-hosted Sourcegraph instance, set the `SRC_ENDPOINT` and `SRC_ACCESS_TOKEN` [environment variables](https://docs.sourcegraph.com/cli/explanations/env).

### GitHub Actions

[](#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](https://docs.gitlab.com/ee/user/project/code_intelligence.html)

[](#gitlab-cicd)

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

[](#manual)

Install [`lsif-php`](https://packagist.org/packages/adrum/lsif-php)with `composer` and the [`src`](https://docs.sourcegraph.com/cli/quickstart) binary. Then generate the LSIF data and upload it:

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

Acknowledgements
----------------

[](#acknowledgements)

This project is a fork of [`davidrjenni/lsif-php`](https://github.com/davidrjenni/lsif-php). Huge thanks to [David R. Jenni](https://github.com/davidrjenni) for creating the original tool and laying the groundwork that made this fork possible.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance91

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 92.5% 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 ~194 days

Recently: every ~366 days

Total

9

Last Release

44d ago

Major Versions

v0.0.6 → v1.0.02026-04-26

PHP version history (2 changes)v0.0.1PHP ^8.0

v1.0.2PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1464185?v=4)[Austin Drummond](/maintainers/adrum)[@adrum](https://github.com/adrum)

---

Top Contributors

[![davidrjenni](https://avatars.githubusercontent.com/u/10241572?v=4)](https://github.com/davidrjenni "davidrjenni (136 commits)")[![adrum](https://avatars.githubusercontent.com/u/1464185?v=4)](https://github.com/adrum "adrum (10 commits)")[![zonuexe](https://avatars.githubusercontent.com/u/822086?v=4)](https://github.com/zonuexe "zonuexe (1 commits)")

---

Tags

lsif

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/adrum-lsif-php/health.svg)

```
[![Health](https://phpackages.com/badges/adrum-lsif-php/health.svg)](https://phpackages.com/packages/adrum-lsif-php)
```

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k9.9M87](/packages/dedoc-scramble)[deptrac/deptrac

Deptrac is a static code analysis tool that helps to enforce rules for dependencies between software layers.

2.9k7.9M99](/packages/deptrac-deptrac)[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[phparkitect/phparkitect

Enforce architectural constraints in your PHP applications

9134.1M24](/packages/phparkitect-phparkitect)[phpdocumentor/reflection

Reflection library to do Static Analysis for PHP Projects

12624.8M137](/packages/phpdocumentor-reflection)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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