attributes-php/fastendpoints-depends

Treats WordPress plugins as dependencies to speed up your REST API's

v1.0.1 2025-05-10 17:40 UTC

README

Treating plugins as dependencies

GitHub Actions Workflow Status (main) Code Coverage WordPress Plugin Version Supported WordPress Versions Software License

FastEndpoints Depends allows you to treat plugins as dependencies to speed up your REST endpoints

Features

  • Only includes the plugins you need for the endpoint
  • No code changes needed. Just install and activate this plugin as an MU plugin
  • Full support to both native WP REST endpoints and WP-FastEndpoints

Requirements

Installation

Using Bedrock

  1. Navigate to the Bedrock root folder
  2. Install the following composer package composer require attributes-php/wp-fastendpoints-depends
  3. Run the following WP CLI command wp fastendpoints depends or activate any plugin on the website
  4. Enjoy 😊

Using standard WordPress structure

  1. Download plugin from WordPress store
  2. Install plugin as a MU-plugin
  3. Run the following WP CLI command wp fastendpoints depends or activate any plugin on the website
  4. Enjoy 😊

New deployment

When doing a new deployment you will need to re-generate the route dependencies by either:

  1. Re-run the following WP CLI command wp fastendpoints depends or to
  2. Activate any plugin on the website

FastEndpoints Depends was created by André Gil and is open-sourced software licensed under the MIT license.