2017 © Pedro Peláez
 

kohana-module kohana-plugin-system

A Kohana module makes it possible to manage and make use of plugins through events

image

vheissu/kohana-plugin-system

A Kohana module makes it possible to manage and make use of plugins through events

  • Wednesday, January 22, 2014
  • by happyDemon
  • Repository
  • 5 Watchers
  • 19 Stars
  • 129 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 5 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Kohana Plugin System

This started out as fork of a library I wrote for Codeigniter that could be used in Kohana 3.3., (*1)

At the moment this module exists of an event(hook) system (borrowed from Laravel 3 and renamed to Plug) and a plugin manager., (*2)

Download

Composer

If you want to download this module through composer you'll have to add vheissu/kohana-plugin-system to your packages:, (*3)

{
  "require":
  {
    "vheissu/kohana-plugin-system": "1.*"
  }
}

If you want to store your plugins' state in config files you'll also have to add happydemon/arr to your package list., (*4)

Next run composer update, (*5)

Default

  • Download the zip containing this module
  • Unpack it in your modules folder

The same applies here as with composer, if you want to make store your plugins' state in config files instead of the database you'll have to download happyDemon/arr as well., (*6)

Installation

  1. Open up your bootstrap.php and enable the module: 'Kohana-Plugin-System' => MODPATH.'Kohana-Plugin-System'
  2. copy the config file stored in MODPATH.Kohana-Plugin-System/config/plugins.php to your APPPATH.config folder and change anything you want (do not change manager.loader to DB yet, it will mess up your installation)

If you've downloaded happydemon/arr, don't forget to add it on your bootstrap.php as well., (*7)

Open up your command line, cd into your app's folder and run: php minion plugins (defaults to db) or php minion plugins --manager=db or php minion plugins --manager=config, to start the installation process., (*8)

Now change the manager.loader value (if needed) in your config file., (*9)

Alrighty, you've set everything up perfectly, we've bundled an examplary plugin manager controller which you can visit at http://{your app's url}/plugins. This controller comes with no security, if you want to use it in a production environment you should create a controller called Controller_Plugins that extends Kohana_Controller_Plugins and do an auth/acl check in the before method., (*10)

Documentation

An examplary plugin is bundled with this module to get you started, along with a userguide., (*11)

Authors

The Versions

22/01 2014

dev-master

9999999-dev https://github.com/Vheissu/Kohana-Plugin-System

A Kohana module makes it possible to manage and make use of plugins through events

  Sources   Download

MIT

The Requires

 

database config events plugins hooks kohana

22/01 2014

1.0.3

1.0.3.0 https://github.com/Vheissu/Kohana-Plugin-System

A Kohana module makes it possible to manage and make use of plugins through events

  Sources   Download

MIT

The Requires

 

database config events plugins hooks kohana

21/01 2014

1.0.2

1.0.2.0 https://github.com/Vheissu/Kohana-Plugin-System

A Kohana module makes it possible to manage and make use of plugins through events

  Sources   Download

MIT

The Requires

 

database config events plugins hooks kohana

17/12 2013

1.0.1

1.0.1.0 https://github.com/Vheissu/Kohana-Plugin-System

A Kohana module makes it possible to manage and make use of plugins through events

  Sources   Download

MIT

The Requires

 

database config events plugins hooks kohana

10/09 2013

1.0

1.0.0.0 https://github.com/Vheissu/Kohana-Plugin-System

A Kohana module makes it possible to manage and make use of plugins through events

  Sources   Download

MIT

The Requires

 

database config events plugins hooks kohana