yocto / yoclib-epp
This yocLibrary enables your project to send and receive with EPP (Extensible Provisioning Protocol) in PHP.
dev-master
2026-09-04 10:01 UTC
Requires
- php: ^7.4||^8
- wikimedia/dodo: ^0.4.0
- wikimedia/idle-dom: ^0.10.0
Requires (Dev)
- phpunit/phpunit: ^9
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-04 10:01:45 UTC
README
This yocLibrary enables your project to send and receive with EPP (Extensible Provisioning Protocol) in PHP.
Status
Installation
composer require yocto/yoclib-epp
Usage
Reading
use YOCLIB\EPP\EPPDocumentHelper; use YOCLIB\EPP\EPPRegistries; use YOCLIB\EPP\EPPRegistry; use YOCLIB\EPP\Connections\TCPEPPConnection; use YOCLIB\EPP\Elements\EPPEppElement; $registry = new EPPRegistry(EPPRegistries::SIDN_OTE_HOSTNAME); $conn = new TCPEPPConnection($registry); $doc = $conn->readDocument(); /**@var EPPEppElement $epp*/ $epp = $doc->documentElement; $hello = $epp->getHello();
Writing
use YOCLIB\EPP\EPPDocumentHelper; use YOCLIB\EPP\EPPNamespaces; use YOCLIB\EPP\EPPRegistries; use YOCLIB\EPP\EPPRegistry; use YOCLIB\EPP\Connections\TCPEPPConnection; $doc = EPPDocumentHelper::createEPPDocument(); $epp = $doc->createElementNS(EPPNamespaces::EPP_1_0,'epp'); $hello = $doc->createElementNS(EPPNamespaces::EPP_1_0,'hello'); $epp->appendChild($hello); $doc->appendChild($epp); $registry = new EPPRegistry(EPPRegistries::SIDN_OTE_HOSTNAME); $conn = new TCPEPPConnection($registry); $xml = $conn->writeDocument($doc);