Skip to content

ZfrPusherModule is a Zend Framework 2 module built on top of ZfrPusher

Notifications You must be signed in to change notification settings

zf-fr/zfr-pusher-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZfrPusherModule

Build Status Latest Stable Version

Introduction

ZfrPusherModule is a Zend Framework 2 module that integrates with ZfrPusher

Requirements

Installation

Add "zfr/zfr-pusher-module" to your composer.json file and update your dependencies:

{
    "require": {
        "zfr/zfr-pusher-module": "1.*"
    }
}

Enable ZfrPusherModule in your application.config.php, then copy-paste the file zfr_pusher.local.php.dist (that you can find in the config folder of the module) to your autoload folder (don't forget to remove the .dist at the end!).

Usage

The module registers the PusherClient and PusherService to the ZF 2 service manager. You can therefore get them like this:

// If you want to client:
$pusherClient = $serviceManager->get('ZfrPusher\Client\PusherClient');

// If you want the service:
$pusherService = $serviceManager->get('ZfrPusher\Service\PusherService');

For more information, please refer to the documentation of ZfrPusher to how to use them.

About

ZfrPusherModule is a Zend Framework 2 module built on top of ZfrPusher

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages