dbout / wp-module-rest-api
Quickly add routes to the WordPress Rest API.
Package info
github.com/dimitriBouteille/wp-module-rest-api
Type:package
pkg:composer/dbout/wp-module-rest-api
Requires
- php: >=8.1
- psr/cache: ^1.0|^2.0|^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.69
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^10.5
- rector/rector: ^2.0
- roots/wordpress: ^6.7
- szepeviktor/phpstan-wordpress: ^2.0
- dev-develop
- v1.2.1
- v1.2.0
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 1.0.0-beta.2
- 1.0.0-beta.1
- dev-fix/parse-finder
- dev-feat/type-injection
- dev-fix/permission-inheritance
- dev-fix/permission-callback
- dev-fix/error
- dev-fix/cache-unserialize
- dev-main
- dev-add-release-file
- dev-fix/debug-additionnal-data
- dev-feature/support-glob-path
- dev-update-dependencies
This package is auto-updated.
Last update: 2026-05-16 13:54:16 UTC
README
WordPress module designed for developers that want to add routes to the WordPress Rest API in a few moments.
💡 To simplify the integration of this library, we recommend using WordPress with one of the following tools: Bedrock, Themosis or Wordplate.
Documentation
If you want to know more about how the WordPress API works, you can read the WordPress documentation :)
You can find all the documentation in the wiki.
Installation
Requirements
The server requirements are basically the same as for WordPress with the addition of a few ones :
- PHP >= 8.1
- Composer
Installation with composer
You can use Composer. Follow the installation instructions 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
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 to find out how to raise a pull request.