PHPackages                             dbout/wp-module-rest-api - 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. dbout/wp-module-rest-api

ActivePackage[HTTP &amp; Networking](/categories/http)

dbout/wp-module-rest-api
========================

Quickly add routes to the WordPress Rest API.

v1.2.1(5mo ago)141.4k1[1 issues](https://github.com/dimitriBouteille/wp-module-rest-api/issues)MITPHPPHP &gt;=8.1CI passing

Since Feb 25Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/dimitriBouteille/wp-module-rest-api)[ Packagist](https://packagist.org/packages/dbout/wp-module-rest-api)[ Docs](https://github.com/dimitriBouteille/wp-module-rest-api)[ RSS](/packages/dbout-wp-module-rest-api/feed)WikiDiscussions develop Synced yesterday

READMEChangelog (8)Dependencies (9)Versions (20)Used By (0)

WordPress Rest API
==================

[](#wordpress-rest-api)

[![GitHub Release](https://camo.githubusercontent.com/406acc4b5ba7d5004e219c6509b1bc0a26df474ec006770b21aeccc231786267/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f64696d69747269426f757465696c6c652f77702d6d6f64756c652d726573742d617069)](https://github.com/dimitriBouteille/wp-module-rest-api/releases) [![tests](https://camo.githubusercontent.com/dfeada672449b9d81899e3e44277fb0b0cdfae76efb354726db7c3f944e4bf6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64696d69747269426f757465696c6c652f77702d6f726d2f74657374732e796d6c3f6c6162656c3d7465737473)](https://github.com/dimitriBouteille/wp-module-rest-api/actions/workflows/tests.yml) [![Packagist Downloads](https://camo.githubusercontent.com/271a6c4bba904d40bdccb3f7efe811bd8a687baa98d0b1a937eebdd9dfa667a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64626f75742f77702d6d6f64756c652d726573742d6170693f636f6c6f723d79656c6c6f77)](https://packagist.org/packages/dbout/wp-module-rest-api)

WordPress module designed for developers that want to add routes to the [WordPress Rest API](https://developer.wordpress.org/rest-api/) in a few moments.

> 💡 To simplify the integration of this library, we recommend using WordPress with one of the following tools: [Bedrock](https://roots.io/bedrock/), [Themosis](https://framework.themosis.com/) or [Wordplate](https://github.com/wordplate/wordplate#readme).

Documentation
-------------

[](#documentation)

If you want to know more about how the WordPress API works, you can [read the WordPress documentation](https://developer.wordpress.org/rest-api/) :)

You can find all the documentation in the [wiki](https://github.com/dimitriBouteille/wp-module-rest-api/wiki).

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

[](#installation)

### Requirements

[](#requirements)

The server requirements are basically the same as for [WordPress](https://wordpress.org/about/requirements/) with the addition of a few ones :

- PHP &gt;= 8.1
- [Composer](https://getcomposer.org/)

### Installation with composer

[](#installation-with-composer)

You can use [Composer](https://getcomposer.org/). Follow the [installation instructions](https://getcomposer.org/doc/00-intro.md) if you do not already have composer installed.

```
composer require dbout/wp-module-rest-api
```

In your PHP script, make sure you include the autoloader:

```
require __DIR__ . '/vendor/autoload.php';
```

Contributing
------------

[](#contributing)

We encourage you to contribute to this repository, so everyone can benefit from new features, bug fixes, and any other improvements. Have a look at our [contributing guidelines](CONTRIBUTING.md) to find out how to raise a pull request.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance81

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Recently: every ~175 days

Total

8

Last Release

153d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e5be30a5fa3cbb2c1ec8b80f81d752a6700dbca5a9ab419a508293e68fbde7c?d=identicon)[dimitriBouteille](/maintainers/dimitriBouteille)

---

Top Contributors

[![dimitriBouteille](https://avatars.githubusercontent.com/u/34821762?v=4)](https://github.com/dimitriBouteille "dimitriBouteille (88 commits)")

---

Tags

apiphprestrest-apiwordpresswordpress-apiwordpress-developmentwordpress-rest-apiwordpress-starterwpapiwordpressrestwpREST APIwordpress-developmentwordpress-rest-apiwordpress-starter

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dbout-wp-module-rest-api/health.svg)

```
[![Health](https://phpackages.com/badges/dbout-wp-module-rest-api/health.svg)](https://phpackages.com/packages/dbout-wp-module-rest-api)
```

###  Alternatives

[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M339](/packages/api-platform-core)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.4k67.4M263](/packages/nelmio-api-doc-bundle)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.0M219](/packages/api-platform-metadata)[inpsyde/wp-rest-starter

Starter package for working with the WordPress REST API in an object-oriented fashion.

1088.4k](/packages/inpsyde-wp-rest-starter)[retailcrm/api-client-php

PHP client for RetailCRM API

681.1M1](/packages/retailcrm-api-client-php)[maurobonfietti/rest-api-slim-php

Example of REST API with Slim PHP Framework.

3051.7k](/packages/maurobonfietti-rest-api-slim-php)

PHPackages © 2026

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