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

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

davidrjenni/scip-php
====================

SCIP Code Intelligence Protocol (SCIP) indexer for PHP

v0.0.2(3y ago)172.6k—4.7%10[1 issues](https://github.com/davidrjenni/scip-php/issues)[15 PRs](https://github.com/davidrjenni/scip-php/pulls)MITPHPPHP ^8.2CI passing

Since Apr 10Pushed 3w ago4 watchersCompare

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

READMEChangelogDependencies (13)Versions (32)Used By (0)

scip-php
========

[](#scip-php)

[![CI](https://github.com/davidrjenni/scip-php/actions/workflows/ci.yml/badge.svg)](https://github.com/davidrjenni/scip-php/actions/workflows/ci.yml)[![Coverage](https://camo.githubusercontent.com/764dafb9a054a3e01f1d2f46e046c6a4d8b7849d374c8a3ebcb65077529f13d5/68747470733a2f2f636f6465636f762e696f2f67682f6461766964726a656e6e692f736369702d7068702f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4a594a4e57475344574c)](https://codecov.io/gh/davidrjenni/scip-php)[![OpenSSF Scorecard](https://camo.githubusercontent.com/77f6b87114d65d56ec4f2a3f44a513a85b2cda3e884394753a3a3587bc9bf131/68747470733a2f2f6170692e736563757269747973636f726563617264732e6465762f70726f6a656374732f6769746875622e636f6d2f6461766964726a656e6e692f736369702d7068702f6261646765)](https://api.securityscorecards.dev/projects/github.com/davidrjenni/scip-php)[![License: MIT](https://camo.githubusercontent.com/95b33851af8448de2b896e169c3184b2cc4df405be6a522a0fcff4dcd86653ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6461766964726a656e6e692f736369702d706870)](https://github.com/davidrjenni/scip-php/blob/main/LICENSE)[![Packagist Version](https://camo.githubusercontent.com/12fb6f5c921af181bd552f178986fa8548d74d14deefe2f6ca3a565d481a2c3f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461766964726a656e6e692f736369702d706870)](https://packagist.org/packages/davidrjenni/scip-php)[![PHP Version](https://camo.githubusercontent.com/a256e3392230f5094a960ab253e9545cb58a5b7208ae648a3c89174f995b414d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6461766964726a656e6e692f736369702d706870)](https://packagist.org/packages/davidrjenni/scip-php)[![Docker Image Version](https://camo.githubusercontent.com/c3d4a15c16aadd664729802cffcf3c9272d77d713f0464873133e646ffd5bd23/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f762f6461766964726a656e6e692f736369702d7068703f6c6162656c3d646f636b6572)](https://hub.docker.com/r/davidrjenni/scip-php)[![Docker Image Size](https://camo.githubusercontent.com/da033ba93152c5b98021cafaebf070e3a0078e7f8baf18630bc2c99186f4ef0e/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f696d6167652d73697a652f6461766964726a656e6e692f736369702d706870)](https://hub.docker.com/r/davidrjenni/scip-php)[![Contributors](https://camo.githubusercontent.com/e7345c53e58e92bcd172701b6e15fbe2d2985794a633cecf89dc8ca9b6f2ca09/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f6461766964726a656e6e692f736369702d7068702e737667)](https://github.com/davidrjenni/scip-php/contributors)

SCIP Code Intelligence Protocol (SCIP) indexer for PHP

---

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

And here is a Sourcegraph notebook with a [demo](https://sourcegraph.com/notebooks/Tm90ZWJvb2s6MjI2NQ==) and additional explanations.

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

[](#requirements)

- `scip-php` must be run in the root directory of the project you want to index.
- It needs the `composer.json` and `composer.lock` files in the current working directory.
- Also, `scip-php` needs an up-to-date autoloader and the dependencies must be installed in the vendor directory.

Usage
-----

[](#usage)

### Manual

[](#manual)

Install [`scip-php`](https://packagist.org/packages/davidrjenni/scip-php)with `composer` and the [`src`](https://docs.sourcegraph.com/cli/quickstart) binary. Then generate the SCIP index and upload it:

```
composer require --dev davidrjenni/scip-php
vendor/bin/scip-php
src code-intel upload
```

### Private Sourcegraph Instance

[](#private-sourcegraph-instance)

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

Contributing
------------

[](#contributing)

See the [contributing guidelines](CONTRIBUTING.md).

Development
-----------

[](#development)

- Run `composer lint` to run all linters.
- Run `composer test` to run the unit tests.
- Run `composer cover` to generate a coverage report.

### Inspecting the Output

[](#inspecting-the-output)

- Install the `scip` cli from [github.com/sourcegraph/scip](https://github.com/sourcegraph/scip).
- Run `bin/scip-php` to generate the SCIP index.
- Run `scip snapshot` to generate snapshot files which can be used for inspecting the output of the index.
- See the [documentation](https://github.com/sourcegraph/scip/blob/main/docs/CLI.md)for further functionality.

### Bindings

[](#bindings)

The directory [`src/Bindings`](src/Bindings) contains auto-generated bindings for SCIP. To update the bindings, download the protobuf schema for SCIP and regenerate the bindings:

```
wget -O src/Bindings/scip.proto https://raw.githubusercontent.com/sourcegraph/scip/main/scip.proto
composer gen-bindings
```

The protobuf compiler `protoc` must be present to generate the bindings.

See [github.com/sourcegraph/scip](https://github.com/sourcegraph/scip)for further information.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance61

Regular maintenance activity

Popularity33

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.1% 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 ~13 days

Total

2

Last Release

1167d ago

### Community

Maintainers

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

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (707 commits)")[![davidrjenni](https://avatars.githubusercontent.com/u/10241572?v=4)](https://github.com/davidrjenni "davidrjenni (209 commits)")[![pieded](https://avatars.githubusercontent.com/u/915842?v=4)](https://github.com/pieded "pieded (1 commits)")

---

Tags

code-intelphpscipcodeintelscip

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[brianhenryie/strauss

Prefixes dependencies namespaces so they are unique to your plugin

190438.1k36](/packages/brianhenryie-strauss)[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)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k101.8M2.2k](/packages/behat-behat)[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)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k28.9M2.4k](/packages/infection-infection)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)

PHPackages © 2026

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