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(5mo ago)02PHP

Since Dec 14Pushed 5mo 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 1mo ago

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

28

—

LowBetter than 54% of packages

Maintenance73

Regular maintenance activity

Popularity2

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity24

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

154d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a174c88ec31c735236ac39ef2c3c0caa95d9ee929fa595449ca1516f002526b?d=identicon)[thebbapp](/maintainers/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

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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