Skip to content
This repository has been archived by the owner on Jan 6, 2018. It is now read-only.

abandroid/pusher-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pusher Bundle

By endroid

Latest Stable Version Build Status Total Downloads Monthly Downloads License

This bundle enables easy integration of real-time features provided by Pusher.

knpbundles.com

Requirements

Installation

Use Composer to install the bundle.

$ composer require endroid/pusher-bundle

Then enable the bundle via the kernel.

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new Endroid\PusherBundle\EndroidPusherBundle(),
    ];
}

Configuration

config.yml

endroid_pusher:
    app_id: ...
    key: ...
    secret: ...

Usage

<?php

$pusher = $container->get('endroid_pusher.pusher');
$pusher->trigger('my_channel', 'my_event', ['message' => 'my_message']);

The service returns the Pusher object as defined by the Pusher PHP Library.

Versioning

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility breaking changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading.

License

This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages