2017 © Pedro Peláez
 

library wordpress-dispatcher

Create URL endpoints within WordPress

image

thefold/wordpress-dispatcher

Create URL endpoints within WordPress

  • Monday, July 4, 2016
  • by timfield
  • Repository
  • 1 Watchers
  • 18 Stars
  • 1,564 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

WordPress Router / Dispatcher

Easily add custom URL endpoints in WordPress. Map a url to a function., (*1)

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 & /hello-dougle will now be accessable in your WordPress site., (*2)

Install

Composer

composer require thefold/wordpress-dispatcher, (*3)

The Versions

04/07 2016

dev-master

9999999-dev

Create URL endpoints within WordPress

  Sources   Download

MIT

The Requires

  • php >=5.4

 

04/07 2016

2.0

2.0.0.0

Create URL endpoints within WordPress

  Sources   Download

MIT

The Requires

  • php >=5.4

 

29/04 2015

1.0

1.0.0.0

Create URL endpoints within WordPress

  Sources   Download

MIT

The Requires

  • php >=5.4