PHPackages                             techdock/opcua - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. techdock/opcua

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

techdock/opcua
==============

Modern OPC UA Client for PHP 8.4+ - PHP implementation based on OPC Foundation UA-.NETStandard architecture

v0.3.0(1mo ago)5232[1 PRs](https://github.com/TECHDOCK-CH/php-opc-ua/pulls)MITPHPPHP ^8.4CI passing

Since Nov 8Pushed 3mo agoCompare

[ Source](https://github.com/TECHDOCK-CH/php-opc-ua)[ Packagist](https://packagist.org/packages/techdock/opcua)[ Docs](https://github.com/TECHDOCK-CH/php-opc-ua)[ RSS](/packages/techdock-opcua/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (22)Versions (10)Used By (0)

PHP OPC UA Client
=================

[](#php-opc-ua-client)

[![CI](https://github.com/TECHDOCK-CH/php-opc-ua/workflows/CI/badge.svg)](https://github.com/TECHDOCK-CH/php-opc-ua/actions)[![Security](https://github.com/TECHDOCK-CH/php-opc-ua/workflows/Security/badge.svg)](https://github.com/TECHDOCK-CH/php-opc-ua/actions)[![PHP Version](https://camo.githubusercontent.com/504ead6a583c68d8d62d7bfceed24e569ca613d7a36bed380281b3455b5c7b31/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e342d626c7565)](https://www.php.net/)[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](LICENSE)

Modern, production-ready OPC UA (Unified Architecture) client library for PHP 8.4+. This library is a **PHP implementation** of OPC UA client functionality based on the architecture and design of the [OPC Foundation UA-.NETStandard](https://github.com/OPCFoundation/UA-.NETStandard) implementation. While maintaining wire-protocol compatibility and following the same design patterns, this is an independent implementation adapted for PHP 8.4+ with full type safety and modern language features.

Features
--------

[](#features)

- **Complete OPC UA Client Implementation**

    - Binary protocol (opc.tcp://) with full UA services
    - Secure channel with encryption (Basic256Sha256)
    - Session management with automatic reconnection
    - Certificate-based authentication
- **High-Level API**

    - Fluent ClientBuilder for easy configuration
    - Browse address space with filtering
    - Read/write nodes with type safety
    - Subscriptions and monitored items
    - Event monitoring and alarms
- **Performance Optimizations**

    - LRU caching for node metadata
    - Automatic batch splitting for large operations
    - Server capability detection
    - Connection pooling ready
- **Production Ready**

    - PSR-3 logging integration
    - Comprehensive error handling
    - Type-safe throughout (PHP 8.4 strict types)
    - PHPStan level 9 compliant
    - Extensive test coverage

Quick Start
-----------

[](#quick-start)

### Installation

[](#installation)

```
composer require techdock/opcua
```

### Basic Usage

[](#basic-usage)

```
