承接 efabrica/php-extensions-finder 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

efabrica/php-extensions-finder

最新稳定版本:0.9.0

Composer 安装命令:

composer require efabrica/php-extensions-finder

包简介

Finds PHP extension required by code, can be used in CI

README 文档

README

This library helps to find PHP extension required by your code, it can be used in CI tools.

Installation

PHP extension finder requires PHP 7.1.0 or newer. You can install it via Composer. This project is not meant to be run as a dependency, so install it as project:

mkdir -p ~/tests/php-extensions-finder
composer require efabrica/php-extensions-finder

or globally:

composer global require efabrica/php-extensions-finder

Usage

~/tests/php-extensions-finder/vendor/bin/php-extensions-finder check [--composer COMPOSER] [--] <dirs>...

or

php-extensions-finder check [--composer COMPOSER] [--] <dirs>...

if it is installed globally

For more information, run with option --help

The result looks like:

Please, add these lines to your composer.json:
==============================================

{
    "require": {
        "ext-json": "*"
    }
}

With option -vvv output will be extended with missing extensions usage:

Missing extensions usage:
=========================

ext-json
--------
src/Command/MyCommand.php:35 json_decode
src/Command/MyCommand.php:70 json_encode
src/Command/MyCommand.php:70 JSON_PRETTY_PRINT

Please, add these lines to your composer.json:
==============================================

{
    "require": {
        "ext-json": "*"
    }
}

Return code is count of missing extensions, so you can use it in CI tools.

统计信息

  • 总下载量: 8.25k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 4
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-12-03