zfr / zfr-pusher-module
Zend Framework 2 module for interacting with the Pusher REST API, built on top of ZfrPusher
Installs: 1 983
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 2
Open Issues: 1
Requires
- php: >=5.3.3
- zendframework/zend-servicemanager: 2.*
- zfr/zfr-pusher: 1.*
Requires (Dev)
This package is auto-updated.
Last update: 2024-09-29 03:58:29 UTC
README
Introduction
ZfrPusherModule is a Zend Framework 2 module that integrates with ZfrPusher
Requirements
- PHP 5.3
- Zend Framework 2
- ZfrPusher
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.