chrisullyott/php-ssl-monitor
最新稳定版本:v0.0.5
Composer 安装命令:
composer require chrisullyott/php-ssl-monitor
包简介
Monitor SSL certificate expirations.
README 文档
README
Monitor SSL certificate expiration dates.
Installation
With Composer:
composer require chrisullyott/php-ssl-monitor
Setup
include 'vendor/autoload.php'; $domains = [ 'www.domainone.com', 'www.domaintwo.com', 'www.domainthree.com' ]; $monitor = new SslMonitor($domains); // The maximum number of days before expiration in order to be notified. $monitor->setBeforeDays(30); // Must expire within this many days in order to be notified on weekends. $monitor->setCriticalDays(7); // The maximum number of days after expiration in order to still be notified. $monitor->setAfterDays(7); echo $monitor->buildMessage() . "\n";
Output
SSL expires in 5 hours:
www.domaintwo.com (Saturday October 14, 2018)
SSL expires in 1 week:
www.domainone.com (Saturday October 20, 2018)
统计信息
- 总下载量: 11.03k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-14