Skip to content

the-junty/junty-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

[Component] 💼 Interface for Junty plugins

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages