PHPackages                             ylletjs/wp-rest-api-routes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. ylletjs/wp-rest-api-routes

ActiveWordpress-plugin[HTTP &amp; Networking](/categories/http)

ylletjs/wp-rest-api-routes
==========================

Exposing rewrite rules through the REST API

v1.0.0(8y ago)56[1 issues](https://github.com/ylletjs/wp-rest-api-routes/issues)MITPHPPHP ^7.0

Since Mar 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ylletjs/wp-rest-api-routes)[ Packagist](https://packagist.org/packages/ylletjs/wp-rest-api-routes)[ Docs](https://github.com/ylletjs/wp-rest-api-routes)[ RSS](/packages/ylletjs-wp-rest-api-routes/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Routes endpoint
===============

[](#routes-endpoint)

[![Build Status](https://camo.githubusercontent.com/83456fea61ce17687257cea995d02234d09f3e01e72a866c649fde9f5be0d6e9/68747470733a2f2f7472617669732d63692e6f72672f796c6c65746a732f77702d726573742d6170692d726f757465732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ylletjs/wp-rest-api-routes)

Exposing rewrite rules through the REST API.

New endpoint:

```
/wp-json/wp/v2/routes

```

Example response:

```
[
  {
	  "path": "^wp-json\/?$",
	  "type": "unknown"
  },
  {
	  "path": "^wp-json\/(.*)?",
	  "type": "unknown"
  },
  {
	  "path": "^index.php\/wp-json\/?$",
	  "type": "unknown"
  },
  {
	  "path": "^index.php\/wp-json\/(.*)?",
	  "type": "unknown"
  },
  {
	  "path": "blog\/category\/(.+?)\/feed\/(feed|rdf|rss|rss2|atom)\/?$",
	  "type": "category"
  },
  {
	  "path": "blog\/category\/(.+?)\/(feed|rdf|rss|rss2|atom)\/?$",
	  "type": "category"
  }
]
```

Installation
------------

[](#installation)

```
composer require ylletjs/wp-rest-api-routes

```

License
-------

[](#license)

MIT © [Fredrik Forsmo](https://github.com/frozzare)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2990d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aacdbaebed26ea1ccdb7e37e2bfd2a572350e1d781d1c0b8830d444adb86104e?d=identicon)[frozzare](/maintainers/frozzare)

---

Top Contributors

[![frozzare](https://avatars.githubusercontent.com/u/14610?v=4)](https://github.com/frozzare "frozzare (10 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (2 commits)")

---

Tags

rewrite-rulesrouteswordpresswp-rest-apiapiwordpressrestrouteswp-rest-apiyllet

### Embed Badge

![Health badge](/badges/ylletjs-wp-rest-api-routes/health.svg)

```
[![Health](https://phpackages.com/badges/ylletjs-wp-rest-api-routes/health.svg)](https://phpackages.com/packages/ylletjs-wp-rest-api-routes)
```

###  Alternatives

[pixelpeter/laravel5-woocommerce-api-client

Laravel 5 wrapper for the Woocommerce REST API

125103.4k](/packages/pixelpeter-laravel5-woocommerce-api-client)[contributte/api-router

RESTful Router for your Apis in Nette Framework - created either directly or via attributes

20802.8k3](/packages/contributte-api-router)[threesquared/laravel-wp-api

Laravel package for the Wordpress JSON REST API

1310.3k](/packages/threesquared-laravel-wp-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
