flowsell/connect

Official PHP SDK for FlowSell Connect wrapper APIs.

v0.1.0 2026-06-06 03:37 UTC

This package is auto-updated.

Last update: 2026-06-06 04:16:24 UTC


README

Official PHP SDK for FlowSell Connect wrapper APIs.

FlowSell Connect exposes one developer interface for messaging channels. WhatsApp is live first; future channels will use the same message contract.

Install

composer require flowsell/connect

Configure

FLOWSELL_API_KEY=fsc_your_secret
FLOWSELL_API_BASE_URL=https://cmwhd2hdarqpip3krnua6ep3le0qhstm.lambda-url.ap-south-1.on.aws
FLOWSELL_PHONE_NUMBER_ID=1131858666672190

Send A Message

<?php

use FlowSell\Connect\FlowSell;

$client = new FlowSell(apiKey: getenv('FLOWSELL_API_KEY'));

$client->messages->send([
    'channel' => 'whatsapp',
    'phoneNumberId' => getenv('FLOWSELL_PHONE_NUMBER_ID'),
    'to' => '+919999999999',
    'message' => 'Hello from FlowSell Connect',
]);

Send A Template

$client->messages->sendTemplate([
    'channel' => 'whatsapp',
    'phoneNumberId' => getenv('FLOWSELL_PHONE_NUMBER_ID'),
    'to' => '+919999999999',
    'template' => 'order_update',
    'variables' => [
        'customer_name' => 'John',
        'order_id' => '#1234',
    ],
]);

Supported Namespaces

  • $client->messages->send([...])
  • $client->messages->sendText([...])
  • $client->messages->sendTemplate([...])
  • $client->templates->create([...])
  • $client->templates->list([...])
  • $client->templates->get('order_update')
  • $client->templates->delete([...])
  • $client->media->upload([...])
  • $client->media->list([...])
  • $client->usage->get()

Provider URLs, access tokens, WABA IDs, and template components stay inside FlowSell Connect.