承接 chrisullyott/php-ssl-monitor 相关项目开发

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

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-14