struzik-vladislav / epp-socket-connection
Socket connection for communicating with EPP(Extensible Provisioning Protocol) servers
Installs: 10 125
Dependents: 1
Suggesters: 1
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.4 <8.4
- psr/log: ~1.0 | ~2.0 | ~3.0
- struzik-vladislav/epp-client: ^2.0
- struzik-vladislav/php-error-handler: ~1.0
README
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();