PHPackages                             vivlong/phalapi-wordpress - 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. vivlong/phalapi-wordpress

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

vivlong/phalapi-wordpress
=========================

PhalApi 2.x 扩展类库，用于操作 WordPress。

1.0.1(1y ago)031MulanPSL-2.0PHPPHP &gt;=8.0.0

Since Aug 17Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/vivlong/phalapi-wordpress)[ Packagist](https://packagist.org/packages/vivlong/phalapi-wordpress)[ Docs](https://www.phalapi.net/)[ RSS](/packages/vivlong-phalapi-wordpress/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

PhalApi 2.x 的Wordpress扩展
========================

[](#phalapi-2x-的wordpress扩展)

PhalApi 2.x扩展类库，操作wordpress。

安装和配置
-----

[](#安装和配置)

修改项目下的composer.json文件，并添加：

```
    "vivlong/phalapi-wordpress":"dev-master"

```

然后执行`composer update`，如果PHP版本过低，可使用`composer update --ignore-platform-reqs`。

安装成功后，添加以下配置到./config/app.php文件：

```
    'Wordpress' => array(
        'url' => '',
        'api_key' => '',
        'api_secret' => '',
        'options' => [
            'version' => 'wp/v2',
            'verify_ssl' => false,
            'timeout' => 10,
        ],
        'auth' => 'jwt',
        'jwt_token' => '',
        'basic_user' => '',
        'basic_pwd' => '',
    ),
```

针对WP5.6后推出的Application Password功能，接口配置auth可选jwt或basic

使用
--

[](#使用)

在文件中，使用服务：

```
$wordpress = new \PhalApi\Wordpress\Lite();
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance62

Regular maintenance activity

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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 ~1 days

Total

2

Last Release

637d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63cebb214330833e8bea309160266105934daf5e70e20db7ae58a6484443f37c?d=identicon)[vivlong](/maintainers/vivlong)

---

Top Contributors

[![vivlong](https://avatars.githubusercontent.com/u/3961154?v=4)](https://github.com/vivlong "vivlong (43 commits)")

---

Tags

wordpressphalapiphalapi-wordpress

### Embed Badge

![Health badge](/badges/vivlong-phalapi-wordpress/health.svg)

```
[![Health](https://phpackages.com/badges/vivlong-phalapi-wordpress/health.svg)](https://phpackages.com/packages/vivlong-phalapi-wordpress)
```

###  Alternatives

[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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