Skip to content

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

License

Notifications You must be signed in to change notification settings

concrete5cojp/concrete5-pusher

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages