endroid / pusher-bundle
Endroid Pusher Bundle for Symfony
Installs: 155
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.1
- pusher/pusher-php-server: ^2.2
Requires (Dev)
- phpunit/phpunit: ^5.7|^6.0
This package is not auto-updated.
Last update: 2022-02-01 12:55:14 UTC
README
By endroid
This bundle enables easy integration of real-time features provided by Pusher
.
Requirements
- Symfony
- Dependencies:
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.