Skip to content

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

License

Notifications You must be signed in to change notification settings

struzik-vladislav/epp-socket-connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages