PHPackages                             zero-to-prod/ssl-cert-validator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. zero-to-prod/ssl-cert-validator

ActiveLibrary[Security](/categories/security)

zero-to-prod/ssl-cert-validator
===============================

Fetch, validate, and verify SSL certificates.

v82.1.0(8mo ago)14871MITPHPPHP &gt;=8.1CI passing

Since Sep 8Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/zero-to-prod/ssl-cert-validator)[ Packagist](https://packagist.org/packages/zero-to-prod/ssl-cert-validator)[ Docs](https://github.com/zero-to-prod/ssl-cert-validator)[ Fund](https://github.com/sponsors/zero-to-prod)[ RSS](/packages/zero-to-prod-ssl-cert-validator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (13)Used By (1)

Zerotoprod\\SslCertValidator
============================

[](#zerotoprodsslcertvalidator)

[![](./art/logo.png)](./art/logo.png)

[![Repo](https://camo.githubusercontent.com/9a90a3efeee26aed7d7f2feee9cd84566a26f9c362cc773b184d076210906e1c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6769746875622d677261793f6c6f676f3d676974687562)](https://github.com/zero-to-prod/ssl-cert-validator)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/563f26ea9c636e4dd3897481d3e5e52bc0415343e93100e608ec085d866834ce/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a65726f2d746f2d70726f642f73736c2d636572742d76616c696461746f722f746573742e796d6c3f6c6162656c3d74657374)](https://github.com/zero-to-prod/ssl-cert-validator/actions)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/bba8bb637adcd9b3266de9484bddefe9e51d7f567e19aeac8910446b5a99c36a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a65726f2d746f2d70726f642f73736c2d636572742d76616c696461746f722f6261636b77617264735f636f6d7061746962696c6974792e796d6c3f6c6162656c3d6261636b77617264735f636f6d7061746962696c697479)](https://github.com/zero-to-prod/ssl-cert-validator/actions)[![Packagist Downloads](https://camo.githubusercontent.com/d2fe76271c6bdc9c92b3ef9a19b07caf96a518fd04620d80df2f1b31d3c84b5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a65726f2d746f2d70726f642f73736c2d636572742d76616c696461746f723f636f6c6f723d626c7565)](https://packagist.org/packages/zero-to-prod/ssl-cert-validator/stats)[![Packagist Version](https://camo.githubusercontent.com/1f8a1e80beb20dbd4475d715d1034cf4173de3ec793c4bc2f24b50f79a24674a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a65726f2d746f2d70726f642f73736c2d636572742d76616c696461746f723f636f6c6f723d663238643161)](https://packagist.org/packages/zero-to-prod/ssl-cert-validator)[![GitHub repo size](https://camo.githubusercontent.com/a5a754cd94d9a60f4cb9743ffd11a4c326da138be36f28834f453186c6f6fbde/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f7a65726f2d746f2d70726f642f73736c2d636572742d76616c696461746f72)](https://github.com/zero-to-prod/ssl-cert-validator)[![License](https://camo.githubusercontent.com/9969547538dec0612da0f744b46d8adf258e5e726d48f3edd1f974137cb557eb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7a65726f2d746f2d70726f642f73736c2d636572742d76616c696461746f723f636f6c6f723d726564)](https://github.com/zero-to-prod/ssl-cert-validator/blob/main/LICENSE.md)[![Hits-of-Code](https://camo.githubusercontent.com/f3b200b84b2e73476e0cdcf1ba8ff0a0868ab4a292517154aa1e75d4daafb21f/68747470733a2f2f686974736f66636f64652e636f6d2f6769746875622f7a65726f2d746f2d70726f642f73736c2d636572742d76616c696461746f723f6272616e63683d6d61696e)](https://hitsofcode.com/github/zero-to-prod/ssl-cert-validator/view?branch=main)

Contents
--------

[](#contents)

- [Introduction](#introduction)
- [Requirements](#requirements)
- [Installation](#installation)
- [Documentation Publishing](#documentation-publishing)
    - [Automatic Documentation Publishing](#automatic-documentation-publishing)
- [Usage](#usage)
    - [Nested Objects](#nested-objects)
- [Local Development](./LOCAL_DEVELOPMENT.md)
- [Contributing](#contributing)

Introduction
------------

[](#introduction)

Fetch, validate, and verify SSL certificates.

Requirements
------------

[](#requirements)

- PHP 7.1 or higher.

Installation
------------

[](#installation)

Install `Zerotoprod\SslCertValidator` via [Composer](https://getcomposer.org/):

```
composer require zero-to-prod/ssl-cert-validator
```

This will add the package to your project’s dependencies and create an autoloader entry for it.

Documentation Publishing
------------------------

[](#documentation-publishing)

You can publish this README to your local documentation directory.

This can be useful for providing documentation for AI agents.

This can be done using the included script:

```
# Publish to default location (./docs/zero-to-prod/ssl-cert-validator)
vendor/bin/zero-to-prod-ssl-cert-validator

# Publish to custom directory
vendor/bin/zero-to-prod-ssl-cert-validator /path/to/your/docs
```

### Automatic Documentation Publishing

[](#automatic-documentation-publishing)

You can automatically publish documentation by adding the following to your `composer.json`:

```
{
  "scripts": {
    "post-install-cmd": [
      "zero-to-prod-ssl-cert-validator"
    ],
    "post-update-cmd": [
      "zero-to-prod-ssl-cert-validator"
    ]
  }
}
```

Usage
-----

[](#usage)

```
use Zerotoprod\SslCertValidator\SslCertificate;

SslCertificate::rawCertificates('https://example.com');
SslCertificate::hostIsValid('https://example.com');
SslCertificate::isExpired('example.com');
SslCertificate::isSelfSigned('example.com');
SslCertificate::isTrustedRoot('example.com', '/path/to/cafile.pem');
```

Contributing
------------

[](#contributing)

Contributions, issues, and feature requests are welcome! Feel free to check the [issues](https://github.com/zero-to-prod/ssl-cert-validator/issues) page if you want to contribute.

1. Fork the repository.
2. Create a new branch (`git checkout -b feature-branch`).
3. Commit changes (`git commit -m 'Add some feature'`).
4. Push to the branch (`git push origin feature-branch`).
5. Create a new Pull Request.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance59

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~32 days

Recently: every ~53 days

Total

12

Last Release

260d ago

Major Versions

v71.x-dev → v81.0.02025-01-29

v81.0.2 → v82.0.02025-02-18

PHP version history (2 changes)v71.0.0PHP &gt;=7.1

v82.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/502649f05d36c87d494988bd99193a4d908d345335d99c080928a726277371f5?d=identicon)[zero-to-prod](/maintainers/zero-to-prod)

---

Top Contributors

[![zero-to-prod](https://avatars.githubusercontent.com/u/61474950?v=4)](https://github.com/zero-to-prod "zero-to-prod (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

phpsslssl-certificatessl-certificatesssl-certificatezero-to-prodssl-cert-validator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zero-to-prod-ssl-cert-validator/health.svg)

```
[![Health](https://phpackages.com/badges/zero-to-prod-ssl-cert-validator/health.svg)](https://phpackages.com/packages/zero-to-prod-ssl-cert-validator)
```

###  Alternatives

[zero-to-prod/data-model

Transforms Data into Type-Safe DTOs.

14226.2k32](/packages/zero-to-prod-data-model)[liquidweb/ssl-certificate

A class to easily query the properties of and validate the status of an ssl certificate

183.7k](/packages/liquidweb-ssl-certificate)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
