https://github.com/dimitribouteille/wp-module-rest-api
🚀 Quickly add routes to the WordPress REST API.
https://github.com/dimitribouteille/wp-module-rest-api
api php rest rest-api wordpress wordpress-api wordpress-development wordpress-rest-api wordpress-starter wp
Last synced: about 2 months ago
JSON representation
🚀 Quickly add routes to the WordPress REST API.
- Host: GitHub
- URL: https://github.com/dimitribouteille/wp-module-rest-api
- Owner: dimitriBouteille
- License: mit
- Created: 2024-02-19T20:45:57.000Z (almost 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-05-21T09:37:41.000Z (over 1 year ago)
- Last Synced: 2025-01-29T08:11:37.012Z (11 months ago)
- Topics: api, php, rest, rest-api, wordpress, wordpress-api, wordpress-development, wordpress-rest-api, wordpress-starter, wp
- Language: PHP
- Homepage: https://packagist.org/packages/dbout/wp-module-rest-api
- Size: 61.5 KB
- Stars: 13
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# WordPress Rest API
[](https://github.com/dimitriBouteille/wp-module-rest-api/releases) [](https://github.com/dimitriBouteille/wp-module-rest-api/actions/workflows/tests.yml) [](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
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
### Requirements
The server requirements are basically the same as for [WordPress](https://wordpress.org/about/requirements/) with the addition of a few ones :
- PHP >= 8.1
- [Composer](https://getcomposer.org/)
### 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.
~~~bash
composer require dbout/wp-module-rest-api
~~~
In your PHP script, make sure you include the autoloader:
~~~php
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](CONTRIBUTING.md) to find out how to raise a pull request.