Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 929 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 929 Bytes

concrete5cojp/concrete5-pusher

A concrete5 package to add Pusher Channels HTTP PHP Library and manage API key.

Getting Started

  1. Clone this repository and install dependencies
cd YOUR_CONCRETE_ROOT/packages
git clone [email protected]:concrete5cojp/concrete5-pusher.git pusher
cd pusher
composer install
  1. Install the package from your dashboard

  2. Provide API key and other required information on Dashboard > System & Settings > Pusher Channels > API.

  3. Then you can use the library like below

$app = \Concrete\Core\Support\Facade\Application::getFacadeApplication();
$pusher = $app->make(\Pusher\Pusher::class);
$pusher->trigger('my-channel', 'my-event', ['message' => 'Test']);

Example extermal form

You can test to use Pusher Channels by just copying example/blocks/external_form folder to YOUR_CONCRETE_ROOT/application/blocks/external_form