2017 © Pedro Peláez
 

library epp-client

PHP library for communicating with EPP(Extensible Provisioning Protocol) servers

image

struzik-vladislav/epp-client

PHP library for communicating with EPP(Extensible Provisioning Protocol) servers

  • Tuesday, October 3, 2017
  • by struzik-vladislav
  • Repository
  • 2 Watchers
  • 1 Stars
  • 21 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

EPP Client

Build Status Latest Stable Version Total Downloads Software License StandWithUkraine, (*1)

PHP library for communicating with EPP (Extensible Provisioning Protocol) servers., (*2)

Documentation

Go to web documentation., (*3)

Library implemented according to next RFCs: * RFC 5730 - Extensible Provisioning Protocol (EPP) * RFC 3731 - Extensible Provisioning Protocol (EPP) Domain Name Mapping * RFC 5732 - Extensible Provisioning Protocol (EPP) Host Mapping * RFC 5733 - Extensible Provisioning Protocol (EPP) Contact Mapping * RFC 5734 - Extensible Provisioning Protocol (EPP) Transport over TCP * RFC 3735 - Guidelines for Extending the Extensible Provisioning Protocol (EPP), (*4)

Connections

Extensions

Tools

Basic usage

composer.json, (*5)

{
  "require": {
    "struzik-vladislav/epp-client": "^2.0",
    "struzik-vladislav/epp-socket-connection": "^2.0",
    "monolog/monolog": "*"
  }
}

example.php, (*6)

<?php

use Monolog\Handler\StreamHandler;
use Monolog\Logger;
use Struzik\EPPClient\EPPClient;
use Struzik\EPPClient\NamespaceCollection;
use Struzik\EPPClient\Request\Session\LoginRequest;
use Struzik\EPPClient\Request\Session\LogoutRequest;
use Struzik\EPPClient\SocketConnection\StreamSocketConfig;
use Struzik\EPPClient\SocketConnection\StreamSocketConnection;

require_once __DIR__.'/vendor/autoload.php';

$logger = new Logger('EPP Client');
$logger->pushHandler(new StreamHandler('php://output', Logger::DEBUG));

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

$client = new EPPClient($connection, $logger);
$client->getNamespaceCollection()->offsetSet(NamespaceCollection::NS_NAME_ROOT, 'urn:ietf:params:xml:ns:epp-1.0');
$client->getNamespaceCollection()->offsetSet(NamespaceCollection::NS_NAME_CONTACT, 'urn:ietf:params:xml:ns:contact-1.0');
$client->getNamespaceCollection()->offsetSet(NamespaceCollection::NS_NAME_HOST, 'urn:ietf:params:xml:ns:host-1.0');
$client->getNamespaceCollection()->offsetSet(NamespaceCollection::NS_NAME_DOMAIN, 'urn:ietf:params:xml:ns:domain-1.0');;

$client->connect();

$request = new LoginRequest($client);
$request->setLogin('login')
    ->setPassword('password')
    ->setLanguage('en')
    ->setProtocolVersion('1.0');
$response = $client->send($request);

$request = new LogoutRequest($client);
$response = $client->send($request);

$client->disconnect();

The Versions

03/10 2017

dev-master

9999999-dev

PHP library for communicating with EPP(Extensible Provisioning Protocol) servers

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladislav Struzik

domains registry registrar epp

18/09 2017

v1.0.0

1.0.0.0

PHP library for communicating with EPP(Extensible Provisioning Protocol) servers

  Sources   Download

MIT

The Requires

 

by Vladislav Struzik

domains registry registrar epp