junty/junty-plugin

Package for create Junty plugins.

Installs: 121

Dependents: 3

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/junty/junty-plugin

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

This package is not auto-updated.

Last update: 2025-09-28 00:29:26 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) {
            //...
        };
    }
}