sfNginxPushPlugin - 1.0.0

Nginx Push Plugin

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

sfNginxPushPlugin

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.

Configuration

In your app.yml, define nginxpush_endpoint to the full URL of the push module.

Usage

Pretty simple:

$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