Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit b282496

Browse files
committed
updated readme
1 parent ce06865 commit b282496

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ It currently ships with the following Diagnostic Checks:
2222
* [PhpVersion](#phpversion) - make sure that PHP version matches constraint,
2323
* [PhpFlag](#phpflag) - make sure that given PHP flag (feature) is turned on or off.
2424
* [ProcessRunning](#processrunning) - check if a process with given name or ID is currently running,
25+
* [RabbitMQ](#rabbitmq) - Validate that a RabbitMQ service is running,
26+
* [Redis](#redis) - Validate that a Redis service is running,
2527
* [SecurityAdvisory](#securityadvisory) - check installed composer dependencies against SensioLabs SA database,
2628
* [StreamWrapperExists](#streamwrapperexists) - make sure given stream wrapper is available.
2729

@@ -510,6 +512,28 @@ $checkApache = new ProcessRunning('httpd');
510512
$checkProcess1000 = new ProcessRunning(1000);
511513
````
512514

515+
### RabbitMQ
516+
517+
Validate that a RabbitMQ service is running.
518+
519+
```php
520+
<?php
521+
use ZendDiagnostics\Check\RabbitMQ;
522+
523+
$rabbitMQCheck = new RabbitMQ('localhost', 5672, 'guest', 'guest', '/');
524+
```
525+
526+
### Redis
527+
528+
Validate that a Redis service is running.
529+
530+
```php
531+
<?php
532+
use ZendDiagnostics\Check\Redis;
533+
534+
$redisCheck = new Redis('localhost', 6379);
535+
```
536+
513537
### SecurityAdvisory
514538

515539
Run a security check of libraries locally installed by [Composer](http://getcomposer.org) against

src/ZendDiagnostics/Check/Redis.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace ZendDiagnostics\Check;
77

88
use Predis\Client;
9-
use Predis\PredisException;
109
use ZendDiagnostics\Result\Failure;
1110
use ZendDiagnostics\Result\Success;
1211

0 commit comments

Comments
 (0)