Operational

DocsGithub Open app

Operational

Github Articles Pitch Usecases Playground API

Contents

Start here
Setup
Get started Send your first event Structured Events Actions Contexts Log limits and errors
Events API
API
Error handling Event parametersPOST Log event Sending actions in events
The Manual
Introduction PWA & push notifications Conventions Setup Manage projects and teammates Categories and search View events in your project Setup PWA on phone Test mode Notifications
Integrations
Nodejs SDK PHP SDK Wordpress plugin
Self hosting
Introduction Install locally Install on VPS Install on Render Install via Docker Install via Docker and Coolify Onboarding Setup .env Setup PWA & push notifications Best practices Durability testing
Other
Vision Roadmap Contributing

PHP SDK

Operational’s PHP SDK requires PHP version 7.4 or greater.

Installation

Use composer to install Operational’s PHP SDK. Run this inside your project:

composer require operational/sdk-php

Then import it in your project

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

use Operational\Operational;
use Psr\Http\Message\ResponseInterface;

Authorization

Pass your api key like this:

$client = new Operational('YOUR_API_KEY_HERE', [
]);

Code examples

Visit the Playground and select PHP SDK as the code language to generate code examples.

For self hosters

Pass your backend’s url when initiating the Operational class.

$client = new Operational('YOUR_API_KEY_HERE', [
    'baseUrl' => 'https://xyz.abc.com', // <-- Enter your backend url here
]);

You can find this url inside your self hosted instance’s profile page under your api key.

Nodejs SDKWordpress plugin

Operational

PrivacyTerms
About the product
  • Use cases
  • Playground
  • API
  • Pitch
  • Pricing
  • Wordpress plugin
Related to the product
  • Open Source
  • Articles
  • VS Logsnag
Useful articles for your SaaS
  • My experience running a Commercial OSS project
  • Force post: The Payment Hack that lets Merchants charge you without approval
  • 6 Best practices for early stage B2B SaaS customer support
  • Setup event notifications for your SaaS