2017 © Pedro PelĂĄez
 

library diagnostics

Configurable diagnostic tests for PHP applications

image

evolver/diagnostics

Configurable diagnostic tests for PHP applications

  • Monday, March 9, 2015
  • by evolver
  • Repository
  • 2 Watchers
  • 3 Stars
  • 2,253 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Diagnostics

Configurable diagnostic tests for PHP applications based on ZendDiagnostics, (*1)

Packagist Downloads License Build, (*2)

Requirements

This application has the following requirements:, (*3)

  • PHP 5.4 or higher

Installation

You can install this application in two different ways, (*4)

Download the latest release to yor project root, (*5)

As a Composer dependency

Install Composer in your project:, (*6)

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

Create a composer.json file in your project root:, (*7)

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

Install this package via Composer:, (*8)

$ php composer.phar install

Or add this package as a requirement to an existing project:, (*9)

$ php composer.phar require evolver/diagnostics

Usage

Create a diagnostics.yml file in your project root:, (*10)

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

You may specify any other diagnostic checks according to the sample above, (*11)

This application ships with some additional diagnostic checks:, (*12)

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

Run diagnostic checks:, (*13)

  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, (*14)

PhpExtension

Make sure that a given extension is loaded, (*15)

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

Make sure that a given extension is loaded in a defined version, (*16)

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

Make sure that a given extension is absent, (*17)

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

The Versions

09/03 2015

dev-master

9999999-dev

Configurable diagnostic tests for PHP applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

27/02 2015

v1.0.0

1.0.0.0

Configurable diagnostic tests for PHP applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires