PHPackages                             africc/php-epp2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. africc/php-epp2

ActiveLibrary[HTTP &amp; Networking](/categories/http)

africc/php-epp2
===============

A High Level EPP (Extensible Provisioning Protocol) TCP/SSL Client for PHP

2.0.0(3y ago)5578.1k—8.5%34[3 PRs](https://github.com/AfriCC/php-epp2/pulls)1GPL-3.0-or-laterPHPPHP &gt;=5.5.0CI passing

Since Jun 11Pushed 5mo ago12 watchersCompare

[ Source](https://github.com/AfriCC/php-epp2)[ Packagist](https://packagist.org/packages/africc/php-epp2)[ Docs](https://github.com/AfriCC/php-epp2)[ RSS](/packages/africc-php-epp2/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (16)Used By (1)

[![build and publish](https://github.com/AfriCC/php-epp2/actions/workflows/build-and-publish.yml/badge.svg)](https://github.com/AfriCC/php-epp2/actions/workflows/build-and-publish.yml)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/cf4013a3cbd1efc91ab1e4646fdfa1f2e7beac45ff985822f5489360d217d4a4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4166726943432f7068702d657070322f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/AfriCC/php-epp2/?branch=main)[![Coverage Status](https://camo.githubusercontent.com/f7ef1fd06bbd156cfd3b401fda3ef7461b51ee5cf400e36deb91290c27360e69/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4166726943432f7068702d657070322f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/AfriCC/php-epp2?branch=main)[![Latest Stable Version](https://camo.githubusercontent.com/2472a715cc04d54c0e351183f867ab5ab918bfd6cd06234a63da0e9a4a2be6eb/68747470733a2f2f706f7365722e707567782e6f72672f6166726963632f7068702d657070322f762f737461626c652e737667)](https://packagist.org/packages/africc/php-epp2)[![Packagist](https://camo.githubusercontent.com/51f9da1594466ba7b47cb13ba1c465dfd4c1d4a419f31097e3b03a9199d5d9a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6166726963632f7068702d657070322e737667)](https://packagist.org/packages/africc/php-epp2)[![Latest Unstable Version](https://camo.githubusercontent.com/cd9e6e974a86682e75dd6cb64cc36c44786be1df8eba01d9278261e4c795aba5/68747470733a2f2f706f7365722e707567782e6f72672f6166726963632f7068702d657070322f762f756e737461626c652e737667)](https://packagist.org/packages/africc/php-epp2)[![License](https://camo.githubusercontent.com/fed315a1ebd3a7e5caa4a30fabcc67398aa6975cba34900b39098388993d06d2/68747470733a2f2f706f7365722e707567782e6f72672f6166726963632f7068702d657070322f6c6963656e73652e737667)](https://packagist.org/packages/africc/php-epp2)

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](http://doctoc.herokuapp.com/)*

- [php-epp2](#user-content-php-epp2)
    - [Requirements](#user-content-requirements)
    - [Features](#user-content-features)
    - [Install](#user-content-install)
    - [Usage](#user-content-usage)
        - [Basic Client Connection](#user-content-basic-client-connection)
        - [Create Frame Objects](#user-content-create-frame-objects)
        - [Parse Response](#user-content-parse-response)
    - [Future](#user-content-future)
    - [Credits](#user-content-credits)
    - [Acknowledgments](#user-content-acknowledgments)
    - [License](#user-content-license)

Requirements
------------

[](#requirements)

- PHP 5.5+
- php-ext-intl
- php-ext-openssl

Features
--------

[](#features)

- modern PHP standards
    - [PSR-1](http://www.php-fig.org/psr/psr-1/), [PSR-2](http://www.php-fig.org/psr/psr-2/) &amp; [PSR-4](http://www.php-fig.org/psr/psr-4/)
    - notice and warning free (find them, and I'll fix it!)
- high-level usage (Plug &amp; 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](http://tools.ietf.org/html/rfc5730), [RFC 5731](http://tools.ietf.org/html/rfc5731), [RFC 5732](http://tools.ietf.org/html/rfc5732), [RFC 5733](http://tools.ietf.org/html/rfc5733), [RFC 5734](http://tools.ietf.org/html/rfc5734) &amp; [RFC 3915](http://tools.ietf.org/html/rfc3915)
- DNSSEC support [RFC 5910](http://tools.ietf.org/html/rfc5910)

Install
-------

[](#install)

Via Composer

```
$ composer require africc/php-epp2

```

Usage
-----

[](#usage)

See the [examples](https://github.com/AfriCC/php-epp2/blob/main/examples)folder for a more or less complete usage reference. Additionally have a look at [whmcs-registrars-coza](https://github.com/AfriCC/whmcs-registrars-coza)which is a [WHMCS](https://www.whmcs.com) Registrar Module for the [co.za zone](https://www.registry.net.za) using this library.

### Basic Client Connection

[](#basic-client-connection)

this will automatically login on connect() and logout on close()

```
