wolnosciowiec / domain-certificate-check
A Zend Diagnostics check that notifies about the upcoming expiration of your domains.
1.0.1
2017-03-31 05:21 UTC
Requires
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is not auto-updated.
Last update: 2024-12-08 02:37:28 UTC
README
A Zend Diagnostics check that notifies about the upcoming expiration of your domains.
Configuration
- domains: List of domains eg. ['wolnosciowiec.net', 'cdn1.wolnosciowiec.net']
- daysRemainingToWarn: Days remaining to raise a warning for a domain
- daysRemainingToFail: Days remaining to raise a failure for domain, if you have Zend Diagnostics in composer then eg. the deployment could be cancelled and marked as failed
Setup in plain PHP
<?php $runner = new Runner(); $check = new Wolnosciowiec\DomainCertificateCheck\Check\DomainCertificateCheck( ['wolnosciowiec.net', 'cdn1.wolnosciowiec.net'], 14, 3 ); $results = $runner->run();
Integration with Symfony and LiipMonitorBundle
services:
monitor.check.domain_certificate:
class: Wolnosciowiec\DomainCertificateCheck\Check\DomainCertificateCheck
arguments:
domains: ['wolnosciowiec.net', 'cdn1.wolnosciowiec.net']
daysRemainingToAlert: 14
daysRemainingToWarn: 3
tags:
- { name: liip_monitor.check, alias: domain_certificate }