PHPackages                             fullduplexuk/php-ssl-certificate - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fullduplexuk/php-ssl-certificate

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fullduplexuk/php-ssl-certificate
================================

Easily retrieve the ssl certificate for any host

1.0.2(5y ago)01.0kMITPHPPHP ^7.2CI failing

Since Jul 30Pushed 3y agoCompare

[ Source](https://github.com/fullduplexuk/php-ssl-certificate)[ Packagist](https://packagist.org/packages/fullduplexuk/php-ssl-certificate)[ Docs](https://github.com/joelwmale/php-ssl-certificate)[ RSS](/packages/fullduplexuk-php-ssl-certificate/feed)WikiDiscussions develop Synced today

READMEChangelog (1)Dependencies (4)Versions (9)Used By (0)

Easily retrieve the ssl certificate for any host
================================================

[](#easily-retrieve-the-ssl-certificate-for-any-host)

[![Build Status](https://github.com/joelwmale/php-ssl-certificate/workflows/tests/badge.svg)](https://github.com/joelwmale/php-ssl-certificate/actions)[![Total Downloads](https://camo.githubusercontent.com/5766bc0669a9c303046953f70fb8e38447f9b1633259bfb6bbe71da4fe768321/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f656c776d616c652f7068702d73736c2d6365727469666963617465)](https://packagist.org/packages/joelwmale/php-ssl-certificate)[![Latest Stable Version](https://camo.githubusercontent.com/c414612bef68e36ca923f6babd716e5fb93be79a16c7b0a6e4f30aa66a358207/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6f656c776d616c652f7068702d73736c2d6365727469666963617465)](https://packagist.org/packages/joelwmale/php-ssl-certificate)[![License](https://camo.githubusercontent.com/08ecb6f9ee22c4e9fcbe38f779b4cac452a68c89f85b36e8483928d99a4c23f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a6f656c776d616c652f7068702d73736c2d6365727469666963617465)](https://packagist.org/packages/joelwmale/php-ssl-certificate)

This package makes it easy to download a certificate for a host.

Usage
-----

[](#usage)

```
use Joelwmale\SslCertificate\Certificate;

$certificate = Certificate::forHost('joelmale.com');
```

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

[](#installation)

You can install the package via composer:

```
composer require joelwmale/php-ssl-certificate
```

Available Properties &amp; Methods
----------------------------------

[](#available-properties--methods)

```
/** @var string */
$certificate->issuer; // returns the issuer of the certificate

/** @var string */
$certificate->domain; // returns the primary domain on the certificate

/** @var array */
$certificate->additionalDomains; // returns all the additional/alt domains on the certificate

/** @var bool */
$certificate->isValid; // returns true if valid, false if not

/** @var Carbon */
$certificate->issued; // returns a carbon instance of when the certificate was issued

/** @var Carbon */
$certificate->expires; // returns a carbon instance of when the certificate expires

/** @var int */
$certificate->expiresIn; // returns the amount of days until the certificate expires

/** @var bool */
$certificate->expired; // returns true if the certificate is expired, false if not

/** @var string */
$certificate->signatureAlgorithm; // returns the signature algorithm used to sign the certificate

/** @var bool */
$certificate->isSelfSigned; // returns true if the certificate was self signed
```

### Get raw certificate as JSON

[](#get-raw-certificate-as-json)

```
$certificate->getRawCertificateFieldsAsJson();
```

### Determining if the certificate is valid at a given date

[](#determining-if-the-certificate-is-valid-at-a-given-date)

Returns true if the certificate will still be valid. Takes a Carbon instance as the first parameter.

```
$certificate->isValidAt(Carbon::today()->addMonth(1));
```

### Determining if certificate contains/convers a domain

[](#determining-if-certificate-containsconvers-a-domain)

Returns true if the certificate contains the domain

```
$certificate->containsDomain('joelmale.dev');
```

Testing
-------

[](#testing)

```
$ composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for a list of recent changes.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.2% 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 ~292 days

Total

3

Last Release

1947d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/57141586?v=4)[fullduplexuk](/maintainers/fullduplexuk)[@fullduplexuk](https://github.com/fullduplexuk)

---

Top Contributors

[![joelwmale](https://avatars.githubusercontent.com/u/3906839?v=4)](https://github.com/joelwmale "joelwmale (18 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (5 commits)")[![fullduplexuk](https://avatars.githubusercontent.com/u/57141586?v=4)](https://github.com/fullduplexuk "fullduplexuk (3 commits)")

---

Tags

phplaravelcertificatessljoelwmale

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fullduplexuk-php-ssl-certificate/health.svg)

```
[![Health](https://phpackages.com/badges/fullduplexuk-php-ssl-certificate/health.svg)](https://phpackages.com/packages/fullduplexuk-php-ssl-certificate)
```

###  Alternatives

[japanese-date/japanese-date

日本の暦、祝日を取り扱うライブラリ

1610.0k](/packages/japanese-date-japanese-date)[hedii/laravel-date-range

A date range trait with local scope methods for Laravel Eloquent models

2140.6k](/packages/hedii-laravel-date-range)

PHPackages © 2026

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