Files
boursecu_server/app/pusher/send_notification.php
T

17 lines
326 B
PHP
Raw Normal View History

2026-01-24 14:03:11 +00:00
<?php
require 'pusher/pusher-http-php-master/lib/Pusher.php';
$options = [
'cluster' => 'your_cluster',
'useTLS' => true
];
$pusher = new Pusher\Pusher(
'your_app_key',
'your_app_secret',
'your_app_id',
$options
);
$data['message'] = 'hello world';
$pusher->trigger('my-channel', 'my-event', $data);