PHPackages                             thefold/wordpress-dispatcher - 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. [API Development](/categories/api)
4. /
5. thefold/wordpress-dispatcher

ActiveLibrary[API Development](/categories/api)

thefold/wordpress-dispatcher
============================

Create URL endpoints within WordPress

2.1(7y ago)303.0k3[1 issues](https://github.com/tim-field/wordpress-dispatcher/issues)MITPHPPHP &gt;=5.4

Since Apr 29Pushed 6y agoCompare

[ Source](https://github.com/tim-field/wordpress-dispatcher)[ Packagist](https://packagist.org/packages/thefold/wordpress-dispatcher)[ RSS](/packages/thefold-wordpress-dispatcher/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

WordPress Router / Dispatcher
=============================

[](#wordpress-router--dispatcher)

Easily add custom URL endpoints in WordPress. Map a url to a function.

Example
-------

[](#example)

```
use \TheFold\WordPress\Router;

Router::routes([

    'testing-a-url' => function(){
        echo 'Hello Ted';
    },

    'hello-([a-z]+)' => function($request, $name){
        echo "Hello $name";
    }
]);

```

/testing-a-url &amp; /hello-dougle will now be accessable in your WordPress site.

Install
-------

[](#install)

### Composer

[](#composer)

composer require thefold/wordpress-dispatcher

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Every ~693 days

Total

3

Last Release

2698d ago

Major Versions

1.0 → 2.02016-07-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bdb150c3bf62b8fcc5f86ff9eba0a29ba426dfbdadcfbf8b00ff84570090bcd?d=identicon)[timfield](/maintainers/timfield)

---

Top Contributors

[![tim-field](https://avatars.githubusercontent.com/u/1326910?v=4)](https://github.com/tim-field "tim-field (29 commits)")

### Embed Badge

![Health badge](/badges/thefold-wordpress-dispatcher/health.svg)

```
[![Health](https://phpackages.com/badges/thefold-wordpress-dispatcher/health.svg)](https://phpackages.com/packages/thefold-wordpress-dispatcher)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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