Download the PHP package pantheon-systems/wp-tls-compatibility-checker without Composer

On this page you can find all versions of the php package pantheon-systems/wp-tls-compatibility-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-tls-compatibility-checker

WP TLS Compatibility Checker

Unofficial Support Test WP-CLI Lint GitHub Release GitHub License

Stable tag: 1.0.0
Contributors: jazzsequence


A scanner for outgoing HTTP requests in WordPress code to check TLS 1.2/1.3 compatibility.

Installation

Via Composer

Via Git Updater

WP TLS Compatibility Checker supports Andy Fragen's Git Updater method of managing plugins.

  1. Download and install Git Updater on your WordPress site.
  2. From the Git Updater admin pages, navigate to Install Plugin and use the following values:

Plugin URI: pantheon-systems/wp-tls-compatibility-checker
Repository Branch: main
Remote Repository Host: GitHub
GitHub Access Token: (optional, leave blank)

Manually

  1. Download the [latest release on GitHub](https://.
  2. Unzip the archive into your WordPress plugins directory (usually /wp-content/plugins/).
  3. Upload the plugin to your WordPress site.
  4. Activate the plugin.

Usage

There are two ways to use the TLS Checker: via the WordPress admin or via WP-CLI. The plugin adds a new TLS Compatibility page to the Tools menu. This page allows you to run a TLS scan on your site against /wp-content and all subdirectories. When the scan is complete, a list of URLs that are not compatible with TLS 1.2 or higher will be displayed.

You can also run the scan using the WP-CLI command described below. WP-CLI allows you to specify directories to scan, and to output the results in different formats (table, JSON, CSV, or YAML).

In either case, both passing and failing urls are stored to the database. Subsequent scans will automatically skip the TLS check for URLs that are known to have passed previously (while still testing URLs that were previously failing). This data can be reset at any time either by using the tls-checker reset command from WP-CLI or in the admin with the "Reset TLS Compatibility Data" button.

After a scan has been run, if there are any URLs detected that fail the TLS 1.2/1.3 check, an alert will be displayed on your Site Health page with a list of the failing URLs.

Filters

The TLS Compatibility Checker plugin contains two filters that can be used to either explicitly add URLs to scan or exclude URLs from scanning.

pantheon.tls_checker.skip_urls

This filter can be used to exclude URLs from scanning. The filter accepts an array of URLs to skip. For example:

pantheon.tls_checker.additional_urls

This filter can be used to add URLs to scan. The filter accepts an array of URLs to add. For example:

Extending the plugin

All the functions in inc/core.php are globally declared, allowing you to use any of them in your own code.

WP-CLI Commands

The TLS Checker can be run from the command line with WP-CLI.

run

Runs the TLS checker scan across all PHP files in the given directories (defaults to /mu-plugins, /themes and /plugins). You can specify a directory by passing a --directory flag, e.g.:

Examples

Or, in a Pantheon environment using Terminus:

report

Returns a full report of checked URLs and whether they passed or failed the TLS check. Supports multiple formats (table, JSON, CSV, YAML).

Examples

Or, in a Pantheon environment using Terminus:

reset

Resets the stored passing and failing URLs so the next scan will re-check all discovered URLs.

Examples

How do I know it worked?

If the scan doesn't find anything bad, you should be good to go. If it does, it will list the URLs that it found that weren't compatible. However, if you want to validate that it's working, you can create a new plugin with the following code:

When you run the command, the URL above should be returned as a host that does NOT support TLS 1.2 or higher.


All versions of wp-tls-compatibility-checker with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pantheon-systems/wp-tls-compatibility-checker contains the following files

Loading the files please wait ....