定制 davidrjenni/scip-php 二次开发

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

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

davidrjenni/scip-php

Composer 安装命令:

composer require davidrjenni/scip-php

包简介

SCIP Code Intelligence Protocol (SCIP) indexer for PHP

README 文档

README

CI Coverage OpenSSF Scorecard License: MIT Packagist Version PHP Version Docker Image Version Docker Image Size Contributors

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.

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

Manual

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 upload

Private Sourcegraph Instance

To use a private Sourcegraph instance, set the SRC_ENDPOINT and SRC_ACCESS_TOKEN environment variables first.

Contributing

See the contributing guidelines.

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

  • Install the scip cli from 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 for further functionality.

Bindings

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.

统计信息

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

GitHub 信息

  • Stars: 17
  • Watchers: 4
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固