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)273.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 1mo ago

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 72% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity27

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

2652d 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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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