sfNginxPushPlugin - 1.0.0
Nginx Push Plugin
You are currently browsing
the website for symfony 1
Allows for easy pushing to configured nginx HTTP Push Module endpoints
This is a plugin to easily push messages to nginx's HTTP Push Module
|Bryan Zarzuela||lead||hp.vreselet <<ta>> nayrb|
Copyright (c) 2011 Bryan Zarzuela
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This plugin allows for easy pushing of messages to a configured nginx server running the HTTP Push Module.
Developed specifically for the Teleserv JSON Notification format, it's easy to modify for your specific use case.
In your app.yml, define nginxpush_endpoint to the full URL of the push module.
$foo = sfNginxPush::getInstance(); $foo->push('channel', 'subject', 'data');
The endpoint will receive a JSON packet with 3 main keys: 1. Subject 2. time() 3. Data - anything json_encode can serialize