junty/junty-plugin

Package for create Junty plugins.

v0.1.1 2016-03-04 20:27 UTC

This package is not auto-updated.

Last update: 2024-05-11 15:39:22 UTC


README

This package constains the extension for Junty plugins.

Usage

Install on your package

$ composer require junty/junty-plugin

Creating the 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) {
            //...
        };
    }
}