Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 521 Bytes

File metadata and controls

30 lines (26 loc) · 521 Bytes

Junty Plugin

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