资 源 简 介
Plexus **Plex”us**, n. An intricate or interwoven combination of elements or parts in a coherent structure.
Overview
Plexus is a unique plugin API for PHP 5.1.2+ It performs, what I’ve dubbed as “magic wiring” to re-wire any object method call on the fly as a “pluggable” call and automatically creates and calls the plugin hooks. It provides ultimate flexibility, and can assist greatly from the simplest of plugin APIs to complex plugin-driven applications.
To create a Plexus, in the simplest form, appears something like:
```
$pluginstoload = array(
"PluginName",
"AnotherPluginName",
);
$plexus = new Plexus(new PluginCollection($pluginstoload));
```
To have a Plexus re-wire an object of class “ClassName” method call, you do:
/** * Re-wire $object->methodName