struzik-vladislav/epp-socket-connection

Socket connection for communicating with EPP(Extensible Provisioning Protocol) servers

v2.3.0 2024-02-06 03:19 UTC

This package is auto-updated.

Last update: 2024-10-06 04:40:16 UTC


README

Latest Stable Version Total Downloads Software License StandWithUkraine

Socket connection for communicating with EPP(Extensible Provisioning Protocol) servers.

Connection for struzik-vladislav/epp-client library.

Usage

<?php

use Psr\Log\NullLogger;
use Struzik\EPPClient\SocketConnection\StreamSocketConfig;
use Struzik\EPPClient\SocketConnection\StreamSocketConnection;

$connectionConfig = new StreamSocketConfig();
$connectionConfig->uri = 'tls://epp.example.com:700';
$connectionConfig->timeout = 30;
$connectionConfig->context = [
    'ssl' => [
        'local_cert' => __DIR__.'/certificate.pem',
    ],
];
$connection = new StreamSocketConnection($connectionConfig, new NullLogger());

$connection->open();
echo $connection->read();
$connection->close();