Sourcefabric Manuals

 English |  Español |  Français |  Italiano |  Português |  Русский |  Shqip

Newscoop 4.1 Cookbook

Example plugin

Example plugin repository is in newscoop organization - https://github.com/newscoop/Plugin-ExamplePluginBundle.

The whole plugin system (installation/management) is based on Composer packages. Packages can live on github.com or your own private git repositories but they must be listed on packagist.org or privately owned composer repositories as long as they are based on satis.

For now we only support this way of managing plugins but we have plans for intoducing installation from zip archives.

The whole management process should be done through our Newscoop\Services\PluginsManagerService class. Importantly this way we allow for developers to react on installation, remove, update events, and more in their plugins.

Installation

php application/console plugins:install "newscoop/example-plugin-bundle"

The "Install" command will add your package to your composer.json file and install it. This command will also fire the "plugin.install" event with the parameter plugin_name in event data.

The plugins system is still under development, so for more information check our wiki: https://wiki.sourcefabric.org/display/CS/Plugins+system

There has been error in communication with Booktype server. Not sure right now where is the problem.

You should refresh this page.