yocto / yoclib-epp
This yocLibrary enables your project to send and receive with EPP (Extensible Provisioning Protocol) in PHP.
dev-master
2024-12-10 15:48 UTC
Requires
- php: ^7.1||^8
- wikimedia/dodo: ^0.4.0
- wikimedia/idle-dom: ^0.10.0
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-12-10 15:48:35 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\Connections\EPPTCPConnection; use YOCLIB\EPP\Elements\EPPEppElement; $conn = new EPPTCPConnection(new SIDNTest); $doc = $conn->readDocument(); /**@var EPPEppElement $epp*/ $epp = $doc->documentElement; $hello = $epp->getHello();
Writing
use YOCLIB\EPP\EPPDocumentHelper; use YOCLIB\EPP\EPPNamespaces; use YOCLIB\EPP\Connections\EPPTCPConnection; use YOCLIB\EPP\Registries\SIDNTest; $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); $conn = new EPPTCPConnection(new SIDNTest); $xml = $conn->writeDocument($doc);