PHPackages                             wecodemore/wp-ssl - 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. wecodemore/wp-ssl

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

wecodemore/wp-ssl
=================

Helper class for WordPress projects to see if something is really SSL or not

v1.0.1(11y ago)3121[1 issues](https://github.com/wecodemore/wp-ssl/issues)MITPHPPHP &gt;=5.3.2

Since Jan 14Pushed 11y ago6 watchersCompare

[ Source](https://github.com/wecodemore/wp-ssl)[ Packagist](https://packagist.org/packages/wecodemore/wp-ssl)[ Docs](https://github.com/wecodemore/wp-ssl)[ RSS](/packages/wecodemore-wp-ssl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Is SSL?
=======

[](#is-ssl)

Utility class for WordPress to check if a (local/on the current host) URL is accessible via SSL (or not).

Methods
-------

[](#methods)

To setup the class, you need just a relative path. This path gets added to `get_site_url()`. The second and third arguments are optional and can get omitted.

```
$ssl_utils = new \WCM\SSL\Check( $path );

$ssl_utils = new \WCM\SSL\Check( 'some/relative/path', 443, 12 );

```

The SSL `$port` defaults to `443`, but can get set to something totally different. It can also get set later on by using the setter.

```
$ssl_utils->setPort( 12345 );

```

The class can as well try to figure it out for you:

```
$guessed_port = $ssl_utils->getPort();

```

To find out if the current host is running on ssl, you can simply check

```
$is_ssl = $ssl_utils->isSSL();

```

And finally retrieving the SSL URl is as easy as just calling

```
$ssl_url = $ssl_utils->getURl();

```

To use the class on a different site than the current one in a **Multisite** install, you can explicitly set the `$blog_id` either during instantiating the class or with the setter.

```
$ssl_url = $ssl_utils->setBlogID( 12 );

```

All mentioned setter methods are chainable:

```
$ssl_utils = new \WCM\SSL\Check( 'example/path' );
$ssl_utils
    ->setPort( 443 )
    ->setBlogID( 12 );

```

Install
-------

[](#install)

Best served via Composer:

```
"wecodemore/wp-ssl" : "^1.0"

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

4140d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ec7d6330cea83c240e92bf0356e650a0e5f847497c4f3f0e38e16b4b0755b00?d=identicon)[wecodemore](/maintainers/wecodemore)

---

Top Contributors

[![franz-josef-kaiser](https://avatars.githubusercontent.com/u/387666?v=4)](https://github.com/franz-josef-kaiser "franz-josef-kaiser (2 commits)")

---

Tags

composerwordpresssslwp

### Embed Badge

![Health badge](/badges/wecodemore-wp-ssl/health.svg)

```
[![Health](https://phpackages.com/badges/wecodemore-wp-ssl/health.svg)](https://phpackages.com/packages/wecodemore-wp-ssl)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k441.8k2](/packages/roots-bedrock)[justcoded/wordpress-theme-boilerplate

WordPress theme boilerplate with better code structure and OOP support.

563.9k1](/packages/justcoded-wordpress-theme-boilerplate)

PHPackages © 2026

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