opcua-client-ext-transport-pubsub · v4.4.x
Docs · Getting started

Installation

Install the package and its one PHP extension, then confirm the core dependency.

bash composer
composer require php-opcua/opcua-client-ext-transport-pubsub

Requirements

Requirement Notes
PHP >= 8.2
ext-sockets Used by UdpTransport for UDP unicast/multicast
ext-openssl Transitive — required by the core for Sign / SignAndEncrypt
php-opcua/opcua-client ^4.4 The core client; pulled in automatically

ext-sockets

The UDP transport is built on ext-sockets (not stream sockets), so it can join IPv4 multicast groups via MCAST_JOIN_GROUP (with a legacy IP_ADD_MEMBERSHIP fallback) and set SO_REUSEADDR, the receive buffer, and TTL. Make sure ext-sockets is enabled — php -m | grep sockets.

Verify

bash sanity check
php -r "require 'vendor/autoload.php';
  echo class_exists(PhpOpcua\Client\ExtTransportPubSub\SubscriberBuilder::class) ? 'ok' : 'missing';"

Next: build a working subscriber in Quick start.