PHPackages                             thebbapp/wp-basic-auth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. thebbapp/wp-basic-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

thebbapp/wp-basic-auth
======================

Basic Authentication handler for the JSON API, used for development and debugging purposes

v0.1.0(6mo ago)02PHP

Since Dec 14Pushed 6mo agoCompare

[ Source](https://github.com/thebbapp/php-lib-bb-app-wp-basic-auth)[ Packagist](https://packagist.org/packages/thebbapp/wp-basic-auth)[ Fund](https://thebbapp.com/donate)[ RSS](/packages/thebbapp-wp-basic-auth/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Basic Authentication handler
============================

[](#basic-authentication-handler)

This plugin adds Basic Authentication to a WordPress site.

Note that this plugin requires sending your username and password with every request, and should only be used over SSL-secured connections or for local development and testing. Without SSL we strongly recommend using the [OAuth 1.0a](https://github.com/WP-API/OAuth1) authentication handler in production environments.

Installing
----------

[](#installing)

1. Download the plugin into your plugins directory
2. Enable in the WordPress admin

Using
-----

[](#using)

This plugin adds support for Basic Authentication, as specified in [RFC2617](https://tools.ietf.org/html/rfc2617). Most HTTP clients will allow you to use this authentication natively. Some examples are listed below.

### cURL

[](#curl)

```
curl --user admin:password https://example.com/wp-json/
```

### WP\_Http

[](#wp_http)

```
$args = array(
	'headers' => array(
		'Authorization' => 'Basic ' . base64_encode( $username . ':' . $password ),
	),
);
```

### [node-wpapi](http://wp-api.org/node-wpapi/)

[](#node-wpapi)

```
const WPAPI = require('./wpapi')
const wp = new WPAPI({
    endpoint: 'https://example.com/wp-json',
    username: 'editor',
    password: 'password'
});
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance66

Regular maintenance activity

Popularity2

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 58.8% 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

Unknown

Total

1

Last Release

201d ago

### Community

Maintainers

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

---

Top Contributors

[![rmccue](https://avatars.githubusercontent.com/u/21655?v=4)](https://github.com/rmccue "rmccue (10 commits)")[![kadamwhite](https://avatars.githubusercontent.com/u/442115?v=4)](https://github.com/kadamwhite "kadamwhite (2 commits)")[![tlovett1](https://avatars.githubusercontent.com/u/1844351?v=4)](https://github.com/tlovett1 "tlovett1 (2 commits)")[![dimadin](https://avatars.githubusercontent.com/u/2678421?v=4)](https://github.com/dimadin "dimadin (1 commits)")[![thebbapp](https://avatars.githubusercontent.com/u/248134211?v=4)](https://github.com/thebbapp "thebbapp (1 commits)")[![thevictorlopez](https://avatars.githubusercontent.com/u/2754872?v=4)](https://github.com/thevictorlopez "thevictorlopez (1 commits)")

### Embed Badge

![Health badge](/badges/thebbapp-wp-basic-auth/health.svg)

```
[![Health](https://phpackages.com/badges/thebbapp-wp-basic-auth/health.svg)](https://phpackages.com/packages/thebbapp-wp-basic-auth)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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