Skip to content

piesocket/piesocket-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PieSocket PHP REST Client

PieSocket PHP REST client

Configure

Skip to installation

Laravel

Quick start

Use the starter project: piesocket/laravel-broadcasting-starter

Manual

In composer.json add the following post-autoload-dump script at the top.

\\PieSocket\\Integrations\\Installer::setupLaravel

Example:

"scripts": {
    "post-autoload-dump": [
        "\\PieSocket\\Integrations\\Installer::setupLaravel",
        "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
        "@php artisan package:discover --ansi"
    ]

Add PieSocket driver in connections array of config\broadcasting.php alongside pusher configuration.

'piesocket' => [
  'driver' => 'piesocket',
  'key' => env('PIESOCKET_API_KEY'),
  'secret' => env('PIESOCKET_API_SECRET'),
  'cluster_id' => env('PIESOCKET_CLUSTER_ID'),
]

Documentation: Laravel Broadcasting with PieSocket

Installation

Make sure you have completed the configuration for your integration (optional).

composer require piesocket/piesocket-php

About

PieSocket WebSocket PHP REST Client

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages