Skip to content

siunus/pusher-php-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pusher-php-server

You can also take it through composer by run this command

composer require pusher/pusher-php-server

Usage

<?php
  require __DIR__ . '/vendor/autoload.php';

  $options = array(
    'cluster' => 'YOUR APP CLUSTER',
    'useTLS' => true
  );
  $pusher = new Pusher\Pusher(
    'YOUR APP KEY',
    'YOUR APP SECRET',
    'YOUR APP ID',
    $options
  );

  // Send a message
  $data['message'] = 'hello world';
  $pusher->trigger('my-channel', 'my-event', $data);
?>

About

Vendor source for Pusher PHP Server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published