Download the PHP package africc/php-epp2 without Composer
On this page you can find all versions of the php package africc/php-epp2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-epp2
php-epp2
php-epp2 is a High Level Extensible Provisioning Protocol (EPP) TCP/SSL client written in modern PHP.
Released under the GPLv3 License, feel free to contribute (fork, create meaningful branchname, issue pull request with thus branchname)!
Table of Contents generated with DocToc
- php-epp2
- Requirements
- Features
- Install
- Usage
- Basic Client Connection
- Create Frame Objects
- Parse Response
- Future
- Credits
- Acknowledgments
- License
Requirements
- PHP 5.5+
- php-ext-intl
- php-ext-openssl
Features
- modern PHP standards
- high-level usage (Plug & Play)
- simplified client for socket and http(s) connections (auto login/logout, auto inject clTRID)
- SSL (+local-cert)
- XPath like setter to simplify the creation of complex XML structures
- XML based responses for direct traversal via XPath
- RFC 5730, RFC 5731, RFC 5732, RFC 5733, RFC 5734 & RFC 3915
- DNSSEC support RFC 5910
Install
Via Composer
Usage
See the examples folder for a more or less complete usage reference. Additionally have a look at whmcs-registrars-coza which is a WHMCS Registrar Module for the co.za zone using this library.
Basic Client Connection
this will automatically login on connect() and logout on close()
Create Frame Objects
setXXX() indicates that value can only be set once, re-calling the method will overwrite the previous value.
addXXX() indicates that multiple values can exist, re-calling the method will add values.
Parse Response
You can either access nodes directly by passing through a xpath or use the data() Method which will return an assoc array.
Custom ObjectSpec
If registrar you're working with uses custom namespace names (eg NASK) you can use custom ObjectSpec. Clients always use specified ObjectSpec when decoding responses from EPP server.
You can use this feature as follows:
or you can create frames with custom ObjectSpec:
You can also create different clients with different ObjectSpec and then you can
use getObjectSpec
method when creating any request frame:
You can also change Client's objectSpec on the fly via setObjectSpec
method:
Future
- stricter response parsing
- stricter request validation
- make it server capable (in conjunction with apache mod_epp)
Credits
Acknowledgments
- Gavin Brown (original author of Net_EPP)
- All Contributors of Net_EPP
License
php-epp2 is released under the GPLv3 License. See the bundled LICENSE file for details.
All versions of php-epp2 with dependencies
ext-intl Version *
ext-openssl Version *