Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matapatos/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/matapatos/wp-fastendpoints
endpoints rest-api wordpress
Last synced: 10 days 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/matapatos/wp-fastendpoints
- Owner: matapatos
- License: mit
- Created: 2022-07-16T12:15:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-18T07:51:32.000Z (4 months ago)
- Last Synced: 2024-09-18T16:49:01.709Z (2 months ago)
- Topics: endpoints, rest-api, wordpress
- Language: PHP
- Homepage: https://matapatos.github.io/wp-fastendpoints/
- Size: 2.94 MB
- Stars: 6
- 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/)## 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)**.