struzik-vladislav / epp-socket-connection

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:PHP 100.0%