1. Go to this page and download the library: Download ingenerator/pigeonhole library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ingenerator / pigeonhole example snippets
Kohana::modules(array(
'pigeonhole' => BASEDIR.'vendor/ingenerator/pigeonhole'
// Or MODPATH.'pigeonhole' if using old-style kohana paths
);
class Controller_Something {
public function action_message() {
$message = new \Ingenerator\Pigenohole\Message(
'Look Out!',
'There\'s a monster behind you',
\Ingenerator\Pigeonhole\Message::DANGER
);
$pigeonhole = new \Ingenerator\Pigeonhole\Pigeonhole(Session::instance());
$pigeonhole->add($message);
$this->redirect('/');
}
}