/epp-socket-connection

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

Primary LanguagePHPMIT LicenseMIT

EPP Socket Connection

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();