This package constains the extension for Junty plugins.
$ composer require junty/junty-plugin
namespace MyNamespace;
use Junty\Plugin\PluginInterface;
class MyPlugin implements PluginInterface
{
public function getName() : string
{
return 'my_plugin';
}
public function getCallback() : callable
{
return function (array $streams) {
//...
};
}
}