承接 evolver/diagnostics 相关项目开发

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

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

evolver/diagnostics

最新稳定版本:v1.0.0

Composer 安装命令:

composer require evolver/diagnostics

包简介

Configurable diagnostic tests for PHP applications

README 文档

README

Configurable diagnostic tests for PHP applications based on ZendDiagnostics

Packagist Downloads License Build

Requirements

This application has the following requirements:

  • PHP 5.4 or higher

Installation

You can install this application in two different ways

As a Phar release (recommended)

Download the latest release to yor project root

As a Composer dependency

Install Composer in your project:

$ curl -s https://getcomposer.org/installer | php

Create a composer.json file in your project root:

{
    "require": {
        "evolver/diagnostics": "dev-master"
    }
}

Install this package via Composer:

$ php composer.phar install

Or add this package as a requirement to an existing project:

$ php composer.phar require evolver/diagnostics

Usage

Create a diagnostics.yml file in your project root:

checks:
  - name: "PhpVersion"
    arguments:
      expectedVersion: "5.4"
      operator: ">="

You may specify any other diagnostic checks according to the sample above

This application ships with some additional diagnostic checks:

  • PhpExtension - make sure given extension is (not) loaded in a defined version

Run diagnostic checks:

  1. with the Phar release: $ php diagnostics.phar check
  2. with the Composer binary: $ vendor/bin/diagnostics check

Additional diagnostic checks

This package comes with some additional diagnostic checks

PhpExtension

Make sure that a given extension is loaded

checks:
  - name: "PhpExtension"
    arguments:
      extensionName: "mbstring"

Make sure that a given extension is loaded in a defined version

checks:
  - name: "PhpExtension"
    arguments:
      extensionName: "yaml"
      extensionVersion: "1.1.1"

Make sure that a given extension is absent

checks:
  - name: "PhpExtension"
    arguments:
      extensionName: "apc"
      extensionVersion: false

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-02-11