https://github.com/attributes-php/wp-fastendpoints
FastEndpoints is an elegant way of writing custom WordPress REST endpoints with a focus on readability and IDE auto completion support
https://github.com/attributes-php/wp-fastendpoints
endpoints rest-api wordpress
Last synced: 12 months ago
JSON representation
FastEndpoints is an elegant way of writing custom WordPress REST endpoints with a focus on readability and IDE auto completion support
- Host: GitHub
- URL: https://github.com/attributes-php/wp-fastendpoints
- Owner: Attributes-PHP
- License: mit
- Created: 2022-07-16T12:15:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-18T08:45:54.000Z (about 1 year ago)
- Last Synced: 2025-04-19T00:08:14.834Z (12 months ago)
- Topics: endpoints, rest-api, wordpress
- Language: PHP
- Homepage: https://matapatos.github.io/wp-fastendpoints/
- Size: 3.14 MB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WP-FastEndpoints
------
**FastEndpoints** is an elegant way of writing custom WordPress REST endpoints with a focus on readability and IDE auto completion support.
- Explore our docs at **[FastEndpoints Docs »](https://matapatos.github.io/wp-fastendpoints/)**
## Features
- Decouples request validation from main logic
- Removes unwanted fields from responses
- Middlewares support
- IDE auto completion support
- No magic router. It uses WordPress [`register_rest_route`](https://developer.wordpress.org/reference/functions/register_rest_route/)
- Support for newer JSON schema drafts thanks to [opis/json-schema](https://opis.io/json-schema/2.x/)
- Able to treat plugins as dependencies via [WP-FastEndpoints Depends](https://github.com/matapatos/wp-fastendpoints-depends)
## Requirements
- PHP 8.1+
- WordPress 6.x
- [opis/json-schema](https://opis.io/json-schema/2.x/)
- [php-di/invoker](https://packagist.org/packages/php-di/invoker)
We aim to support versions that haven't reached their end-of-life.
## Installation
```bash
composer require wp-fastendpoints
```
FastEndpoints was created by **[André Gil](https://www.linkedin.com/in/andre-gil/)** and is open-sourced software licensed under the **[MIT license](https://opensource.org/licenses/MIT)**.