PHPackages                             davidrjenni/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. davidrjenni/lsif-php

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

davidrjenni/lsif-php
====================

Language Server Indexing Format (LSIF) generator for PHP

v0.0.6(3y ago)111.1k1[1 issues](https://github.com/davidrjenni/lsif-php/issues)[1 PRs](https://github.com/davidrjenni/lsif-php/pulls)MITPHPPHP ^8.0

Since Jan 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/davidrjenni/lsif-php)[ Packagist](https://packagist.org/packages/davidrjenni/lsif-php)[ RSS](/packages/davidrjenni-lsif-php/feed)WikiDiscussions main Synced today

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

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

[](#lsif-php-)

[![CI](https://github.com/davidrjenni/lsif-php/actions/workflows/ci.yml/badge.svg)](https://github.com/davidrjenni/lsif-php/actions/workflows/ci.yml)[![Coverage](https://camo.githubusercontent.com/d3a2c685f59e581337bdaf4ae760b572210854f951a725615bab829357ebfc96/68747470733a2f2f636f6465636f762e696f2f67682f6461766964726a656e6e692f6c7369662d7068702f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d344e5a574346364c5a53)](https://codecov.io/gh/davidrjenni/lsif-php)[![License: MIT](https://camo.githubusercontent.com/84dd9bde473f17a2a248c6531071a08939625084dd0b662ae316061588688ee2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6461766964726a656e6e692f6c7369662d706870)](https://github.com/davidrjenni/lsif-php/blob/main/LICENSE)[![Packagist Version](https://camo.githubusercontent.com/f99d58e19f8c5b4c8819f7acb1e6a0c21743b6b9cdf38c0ab2a4d6b6ef7d1ff8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461766964726a656e6e692f6c7369662d706870)](https://packagist.org/packages/davidrjenni/lsif-php)[![PHP Version](https://camo.githubusercontent.com/343957ea4768cd3b854960c34c346873aa98e845549519894d45cea703c09e15/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6461766964726a656e6e692f6c7369662d706870)](https://packagist.org/packages/davidrjenni/lsif-php)[![Docker Image Version](https://camo.githubusercontent.com/fe44d7208967eb388625adbabe1e503919d5fe3bbfbc52d07df7f4c39bd2ce86/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f762f6461766964726a656e6e692f6c7369662d7068703f6c6162656c3d646f636b6572)](https://hub.docker.com/r/davidrjenni/lsif-php)[![Docker Image Size](https://camo.githubusercontent.com/91ad4ce1c12ec3d6f82f49cc3570263a67724d6e520ee6ebb3d5731c959a6e22/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f696d6167652d73697a652f6461766964726a656e6e692f6c7369662d706870)](https://hub.docker.com/r/davidrjenni/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/davidrjenni/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: davidrjenni/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: davidrjenni/lsif-php:main
  artifacts:
    reports:
      lsif: dump.lsif
  script:
    - lsif-php
    - src code-intel upload
```

### Manual

[](#manual)

Install [`lsif-php`](https://packagist.org/packages/davidrjenni/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 davidrjenni/lsif-php
$ vendor/bin/lsif-php
$ src code-intel upload
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.3% 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 ~88 days

Recently: every ~110 days

Total

6

Last Release

1185d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10241572?v=4)[David Jenni](/maintainers/davidrjenni)[@davidrjenni](https://github.com/davidrjenni)

---

Top Contributors

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

---

Tags

lsiflsif-indexerphplsif

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[zircote/swagger-php

Generate interactive documentation for your RESTful API using PHP attributes (preferred) or PHPDoc annotations

5.3k144.5M602](/packages/zircote-swagger-php)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[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)[deptrac/deptrac

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

3.0k8.8M118](/packages/deptrac-deptrac)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[brianhenryie/strauss

Prefixes dependencies namespaces so they are unique to your plugin

190438.1k36](/packages/brianhenryie-strauss)

PHPackages © 2026

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