green-spot/aproxi

API proxy

Maintainers

Package info

github.com/green-spot/aproxi

pkg:composer/green-spot/aproxi

Statistics

Installs: 23

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.1 2022-11-17 09:26 UTC

This package is auto-updated.

Last update: 2026-03-19 16:22:25 UTC


README

Aproxi is an API Proxy made by PHP.

It can be used for API request limit countermeasures and content caching. By default, it only supports WordPress REST API, but you can develop modules to support other APIs.

Usage

First, download the library using Composer.

$ composer require green-spot/aproxi

Next, copy the API endpoint directory to the document root.

$ cp -r vendor/green-spot/aproxi/api ./api

Edit the config file. (api/settings.php)

WordPress Module

For WordPress modules, /wp-json/wp/v2/ is mapped to /api/wp/ by default.

https://backend.example.com/wp/wp-json/wp/v2/posts

https://frontend.example.com/api/wp/posts

You can also change the endpoint URL(api/wp/) by editing settings.php.