SCIP Code Intelligence Protocol (SCIP) indexer for PHP
This repository is indexed using itself and available on Sourcegraph.
And here is a Sourcegraph notebook with a demo and additional explanations.
scip-php
must be run in the root directory of the project you want to index.composer.json
and composer.lock
files in the current working directory.scip-php
needs an up-to-date autoloader and the dependencies must be installed in the vendor directory.Install scip-php
with composer
and the src
binary. Then generate the SCIP index and upload it:
composer require --dev davidrjenni/scip-php vendor/bin/scip-php src code-intel uploadPrivate Sourcegraph Instance
To use a private Sourcegraph instance, set the SRC_ENDPOINT
and SRC_ACCESS_TOKEN
environment variables first.
See the contributing guidelines.
composer lint
to run all linters.composer test
to run the unit tests.composer cover
to generate a coverage report.scip
cli from github.com/sourcegraph/scip.bin/scip-php
to generate the SCIP index.scip snapshot
to generate snapshot files which can be used for inspecting the output of the index.The directory 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 for further information.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4