tal7aouy/sslchecker 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

tal7aouy/sslchecker

最新稳定版本:1.0.0

Composer 安装命令:

composer require tal7aouy/sslchecker

包简介

The SSLChecker library is a PHP class that allows you to check the expiry date of an SSL certificate for a given domain

README 文档

README

The SSLChecker library is a PHP class that allows you to check the expiry date of an SSL certificate for a given domain. It uses an SSL connection to retrieve the SSL certificate information and parses the valid from and valid until timestamps into human-readable date strings.

💡Usage

To use the SSLChecker library, follow these steps:

  • install sslchecker in your project.
composer require tal7aouy/sslchecker
  • Include the SSLChecker.php file in your PHP code:
require __DIR__ . "/vendor/autoload.php";
  • Create an instance of the SSLChecker class:
use Tal7aouy\SSLChecker\SSLChecker;

$checker = new SSLChecker();
  • Call the checkExpiry method with the domain you want to check:
$expiryDates = $checker->checkExpiry('example.com');

The checkExpiry method returns an array containing the valid from and valid until dates of the SSL certificate for the given domain:

Array
(
    [valid_from] => 2022-01-01 00:00:00
    [valid_until] => 2023-01-01 00:00:00
)

If there is an error connecting to the domain or parsing the SSL certificate, the method will throw an exception.

✅ Example

Here's an example of how to use the SSLChecker library in a PHP script:

$checker = new SSLChecker();

try {
    $expiryDates = $checker->checkExpiry('example.com');
    echo 'SSL certificate for example.com is valid from ' . $expiryDates['valid_from'] . ' to ' . $expiryDates['valid_until'] . PHP_EOL;
} catch (Exception $e) {
    echo 'Error checking SSL certificate: ' . $e->getMessage() . PHP_EOL;
}

🎉 License

The SSLChecker is released under the MIT License.

tal7aouy/sslchecker 适用场景与选型建议

tal7aouy/sslchecker 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 575 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 03 月 26 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 tal7aouy/sslchecker 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 tal7aouy/sslchecker 我们能提供哪些服务?
定制开发 / 二次开发

基于 tal7aouy/sslchecker 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 575
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 11
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-26