PHPackages                             altis/wp-http-mtls - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. altis/wp-http-mtls

ActiveWordpress-plugin[HTTP &amp; Networking](/categories/http)

altis/wp-http-mtls
==================

WP HTTP Mutual TLS connection helper

20PHP

Since Mar 3Pushed 2mo agoCompare

[ Source](https://github.com/altis-dxp/wp-http-mtls)[ Packagist](https://packagist.org/packages/altis/wp-http-mtls)[ RSS](/packages/altis-wp-http-mtls/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

mTLS Connection Helper for WordPress
====================================

[](#mtls-connection-helper-for-wordpress)

A WordPress helper library for establishing secure mTLS (mutual TLS) connections in WordPress applications.

Description
-----------

[](#description)

This plugin provides a helper for implementing mutual TLS (mTLS) authentication in WordPress HTTP requests. mTLS adds an extra layer of security by requiring both the client and server to authenticate each other using SSL/TLS certificates.

It a wrapper for the [`wp_remote_request()` function](https://developer.wordpress.org/reference/functions/wp_remote_request/), so check the documentation to see default arguments.

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

[](#installation)

### Standard

[](#standard)

Download this repo and upload to your plugins or mu-plugins directory, and activate or include the plugin file respectively.

### Via Composer

[](#via-composer)

```
composer require altis/wp-http-mtls
```

Usage
-----

[](#usage)

Ensure you have the 3 required certificate files. These can be provided either as committed files, or via environment secrets.

### With cert files

[](#with-cert-files)

In your `.config` directory add the following:

- `.config/certs/mtls.crt` - certificate file.
- `.config/certs/mtls.key` - certificate signing key file.
- `.config/certs/mtls.pem` - certificate authority information file.

### With env vars (requires PHP &gt;= 8.2)

[](#with-env-vars-requires-php--82)

If setting via the Altis dashboard use the following names:

- `MTLS_CLIENT_CERT`
- `MTLS_CLIENT_KEY`
- `MTLS_CLIENT_CAINFO`

If setting by some other means prefix with `USER_`:

- `USER_MTLS_CLIENT_CERT`
- `USER_MTLS_CLIENT_KEY`
- `USER_MTLS_CLIENT_CAINFO`

### Making requests

[](#making-requests)

```
// Equivalent to `wp_remote_request()`.
$response = Altis\mTLS\request( $url, [
  'method' => 'POST',
] );
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance57

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21655?v=4)[Ryan McCue](/maintainers/rmccue)[@rmccue](https://github.com/rmccue)

![](https://www.gravatar.com/avatar/77dbeefb7745010589603f2ffc6ff310d8f700b58e08d52af190744c43342526?d=identicon)[roborourke](/maintainers/roborourke)

---

Top Contributors

[![roborourke](https://avatars.githubusercontent.com/u/23417?v=4)](https://github.com/roborourke "roborourke (7 commits)")

### Embed Badge

![Health badge](/badges/altis-wp-http-mtls/health.svg)

```
[![Health](https://phpackages.com/badges/altis-wp-http-mtls/health.svg)](https://phpackages.com/packages/altis-wp-http-mtls)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M317](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M292](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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