24/7 Support

+237 661562859

Camoo developer platform

A modern EPP client for PHP

Build domain automation on a clean, framework-agnostic PHP foundation for direct registry connectivity, reusable services, and secure commercial integrations.

Direct registry connectivity · Framework-agnostic API · Self-hosted

Camoo\Epp $client = new EppClient($config); $client->login(); $client->domainCheck('example.cm'); Direct registry connection
Framework-agnosticIntegrate with PHP applications, services, and custom platforms.
Secure by designTLS EPP transport, XML safety, and signed licensing boundaries.
Built for integrationsUse the same foundation for WHMCS, WordPress, and custom software.

One EPP foundation

A clean OOP API for domain infrastructure

Keep registry protocol details behind a tested, reusable PHP API instead of rebuilding EPP transport and XML handling in every application.

Client and connection

Low-level TLS sockets, EPP framing, login, logout, timeouts, and connection configuration.

Domain operations

Check, create, update, renew, transfer, and information workflows for registry integrations.

Contacts and hosts

Reusable contact, nameserver, polling, and SecDNS building blocks for compliant EPP services.

Developer documentation

A predictable PHP API for registry operations

The package is a framework-agnostic PHP client. It connects directly to an EPP registry over TCP/TLS; it is not a REST API and does not require an HTTP gateway.

Install

Licensed customers receive a versioned ZIP from Camoo and a signed license separately. The commercial archive is not installed from public Packagist.

Extract the archive, register its local path with Composer, then require the matching version.

RELEASE_VERSION="1.0.2"
unzip "camoo-epp-generic-${RELEASE_VERSION}.zip" -d packages
composer config repositories.camoo-epp-generic path "packages/camoo-epp-generic-${RELEASE_VERSION}"
composer require "camoo/epp-generic:${RELEASE_VERSION}" --no-interaction

Configure

Keep registrar credentials and runtime options in environment variables or your secret manager. Commercial license settings are supplied separately with the licensed package.

For commercial releases, the registry host and port are embedded at build time. Your application supplies the registrar credentials and runtime options.

use Camoo\Epp\EppManager;

$client = EppManager::createClient([
    'clid' => getenv('EPP_CLIENT_ID'),
    'password' => getenv('EPP_CLIENT_PASSWORD'),
    'prefix' => 'REG',
    'tls' => true,
    'timeout' => 30,
]);

Configuration parameters

Required means the client cannot connect without the value. Types are PHP types; arrays use the shape shown in the table.

Parameter Type Required Default What it means
hoststringBuild-dependentEmbedded in commercial releaseEPP registry hostname or IP address in source/test builds; commercial releases bind this value during generation.
portintBuild-dependent700Registry TCP port in source/test builds; commercial releases bind the production port during generation.
clidstringYes—Registrar/client identifier issued by the registry.
passwordstringYes—EPP password. Keep it in an environment variable or secret manager.
prefixstringNoREGShort registrar prefix used in generated transaction IDs.
tlsboolNotrueEnables TLS after the TCP connection. Keep true for production registries.
timeoutintNo30Connection and socket timeout in seconds.
sslarray<string,mixed>No[]TLS options such as verify_peer, cafile, local_cert, and local_pk.
languagestringNoenLanguage sent in the EPP login options.
templates_dir?stringNonullDirectory containing registry XML templates for registry-specific variants.
template_namesarray<string,string>No[]Maps an operation name to a template basename, for example domain_info =&gt; cm_domain_info.
template_valuesarray<string,array>No[]Default literal placeholder values per operation.

Domain parameters

The client uses normal PHP arrays. Do not send XML here unless a method explicitly documents a raw XML field.

MethodRequired parametersOptional parameters and types
domainCheck(string|array $domains)$domains: one domain string or list<string>None.
domainInfo(string $domain, ?string $authInfo = null)$domain: domain name$authInfo: ?string, only when the registry requires it
domainCreate(array $params)name: string; registrant: contact handleperiod: int years, default 1; ns: list<string>; contacts: array<string,string>; authInfo: string, generated when omitted
domainRenew(string $domain, string $currentExpiryDate, int $periodYears = 1)$domain: domain name; $currentExpiryDate: YYYY-MM-DD$periodYears: positive int, default 1
domainTransfer(string $domain, string $authInfo, int $periodYears = 1)$domain: domain name; $authInfo: transfer authorization code$periodYears: int, default 1
domainDelete(string $domain)$domain: domain nameNone.
domainRestore(string $domain)$domain: domain nameNone.
domainUpdateAuthCode(string $domain, string $authCode)$domain: domain name; $authCode: new authorization codeNone.
domainUpdateNameservers(string $domain, array $nameservers, array $removeNameservers = [])$domain: domain name; $nameservers: list<string>$removeNameservers: list<string>, default []
domainUpdateStatus(string $domain, string $status, bool $enabled = true, string $reason = '')$domain: domain name; $status: EPP status string$enabled: bool, default true; $reason: string
domainUpdateDnssec(string $domain, array $records, string $action = 'add')$domain: domain name; $records: list<array{keyTag:int,algorithm:int,digestType:int,digest:string}>$action: 'add' or 'rem'
$response = $client->domainCreate([
    'name' => 'example.cm',                 // string, required
    'registrant' => 'REG-CONT-01',          // string, required
    'period' => 1,                           // int, optional; years
    'ns' => ['ns1.example.cm', 'ns2.example.cm'], // list<string>, optional
    'contacts' => [                          // array<string,string>, optional
        'admin' => 'REG-CONT-01',
        'tech' => 'REG-CONT-01',
    ],
    'authInfo' => 'Use-a-strong-code',       // string, optional
]);

Contact and host parameters

Contact fields accept the standard names below. Antic aliases are also accepted where shown.

MethodRequiredOptional/default
contactCreate(array $params)name, email, voice or phone, street or address_1, city, cc or ccode: all stringid: string; authInfo: string; org/company, sp/state, pc/zipcode, fax: string; proxied: bool
contactUpdate(array $params)id or handle: stringFriendly fields such as email, phone, city, or raw XML fragments add/rem/chg: string
contactDelete(string $contactId)$contactId: contact handleNone.
hostCreate(string $host, array $ipAddresses = [])$host: nameserver hostname$ipAddresses: list<string>, IPv4 or IPv6 glue, default []
hostUpdate(string $host, array $addAddresses = [], array $removeAddresses = [])$host: nameserver hostnameBoth address arguments are list<string> and default to []
hostDelete(string $host)$host: nameserver hostnameNone.
$contact = [
    'name' => 'Example Person',
    'email' => '[email protected]',
    'voice' => '+237600000000',
    'street' => '1 Registry Street',
    'city' => 'Yaounde',
    'cc' => 'CM',
    'org' => 'Example Ltd',             // optional
    'sp' => 'Centre',                    // optional state/province
    'pc' => '00000',                     // optional postal code
];

$response = $client->contactCreate($contact);

Special value types

These shapes are important when implementing registry workflows.

list<string>List of stringsExample: ['ns1.example.cm', 'ns2.example.cm'].
array<string,string>Named mapExample: ['admin' =&gt; 'REG-CONT-01'].
?stringNullable stringA string or null. Null means “not supplied”.
boolTrue or falseUse true/false, not the strings "true"/"false".
intWhole numberPeriods and timeouts are integers, for example 1 or 30.

Complete operation signatures

All methods return EppResponse unless noted. Use these signatures as the source of truth when integrating the encoded package.

MethodArgumentsPurpose
contactCheck(string|array $contactIds)One contact handle or list<string>.Check contact availability.
contactInfo(string $contactId, ?string $authInfo = null)$contactId required; $authInfo optional ?stringRead contact details.
hostCheck(string|array $hosts)One hostname or list<string>.Check nameserver availability.
hostInfo(string $host)$host required stringRead nameserver and glue details.
domainUpdateRegistrant(string $domain, string $registrant)Both domain and contact handle are required strings.Change the registrant contact.
domainSuspend(string $domain, string $reason = '')$domain required; $reason optional stringAdds clientHold.
domainUnsuspend(string $domain, string $reason = '')$domain required; $reason optional stringRemoves clientHold.
domainUpdateTheftProtection(string $domain, bool $enabled)Domain is a string; enabled is a real bool.Adds or removes clientTransferProhibited.
domainUpdateContacts(string $domain, array $old, array $new)$old/$new: maps with optional registrant/admin/tech/billing string keysReplace domain contacts while preserving the old/new comparison.
domainChangeSingleHandle(string $domain, string $new, string $old, string $type, string $registrant)All five arguments are required strings; type is usually admin, tech, or billing.Replace one contact handle on a domain.
ping()No arguments.Send an EPP hello command.
pollReq()No arguments.Request the next registry poll message.
pollAck(string $msgId)$msgId required stringAcknowledge the poll message ID returned by the registry.
rawXml(string $xml)$xml required stringAdvanced escape hatch for a complete EPP command.

Session

Use one authenticated session for related operations.

$client->runInSession(function () use ($client): void {
    $client->domainCheck('example.cm');
    $client->domainInfo('example.cm');
});

Domain API

Cover the complete registrar lifecycle.

$client->domainCheck($domains);
$client->domainCreate($params);
$client->domainRenew($name, $expiry, 1);
$client->domainTransfer($name, $authCode);
$client->domainRestore($name);
$client->domainDelete($name);

Contact and host API

Manage contacts, nameservers, glue records, and updates.

$client->contactCreate($contact);
$client->contactUpdate($contact);
$client->contactDelete($contactId);
$client->hostCreate($host, $addresses);
$client->hostUpdate($host, $add, $remove);

Registry extensions

Use the same API for DNSSEC, holds, transfer protection, auth codes, and privacy updates.

$client->domainUpdateDnssec($name, $dsRecords);
$client->domainSuspend($name, $reason);
$client->domainUpdateTheftProtection($name, true);
$client->domainUpdateAuthCode($name, $authCode);

Response contract

Every command returns EppResponse

Inspect the result code and message, then access transaction IDs, raw XML, namespace-filtered response data, or normalized domain/contact data when needed.

$response = $client->domainInfo('example.cm');

if ($response->isSuccess()) {
    $domain = $response->getDomainInfoData();
    $statuses = $domain['status'] ?? [];
}

$response->getCode();
$response->getMessage();
$response->getClientTransactionId();
$response->getRawXml();
Registry-specific XML without a fork

For Antic-compatible deployments, point templates_dir at the registry template bundle and use template_names for variants such as cm_domain_info. This keeps registry quirks configurable while the public PHP API stays stable.

Licensed distribution

Built for protected production deployments

Commercial builds protect the licensing core and registry binding with ionCube. Before connecting to the registry, they verify the signed license and current entitlement lease. Licensed customers receive the documented PHP API and upgrade guidance separately from the protected components.

License configuration details are provided with the licensed package.

The commercial package is installed under vendor/camoo/epp-generic. Keep the signed epp.license.json outside vendor/ and the public web root, preferably at /etc/camoo/epp-generic/epp.license.json, and configure its absolute path with EPP_LICENSE_FILE.

Keep the lease cache persistent and writable by the application user. Workers and cron jobs that belong to the same installation must share the same application storage directory.

Generic commercial lease capacity is counted by distinct public IP addresses observed by CAMOO. Cron workers sharing the same deployment and public IP do not consume extra slots; a different public IP may consume another available slot. Use EPP_LICENSE_IP only for offline-only validation behind NAT or in a container.

Multiple cron processes sharing the same persistent package storage and public IP use the same lease capacity. A different public IP is counted separately against the configured generic IP capacity.

This page documents the Camoo Generic EPP Client. Its license is separate from the ANTIC EPP Registrar for WHMCS license, even though the standard price and term are currently the same.

Interactive API Explorer

OpenAPI 3.1 Specification & Schema Explorer

Browse the operation index without JavaScript, then download the complete OpenAPI contract with parameter and response schemas. Even though EPP runs over TCP/TLS, this OpenAPI contract makes integrating and testing predictable.

This API reference works without external JavaScript.

Domains

POST /domains/check Check domain availability (domainCheck)
domainCheck
PHP signature:
$response = $client->domainCheck(string|array $domains);

Checks if one or multiple domain names are available for registration.

Request parameters
Parameter Type Required Default What it means Example
domains string | array<string> Yes — example.cm
POST /domains/info Retrieve domain details (domainInfo)
domainInfo
PHP signature:
$response = $client->domainInfo(string $domain, ?string $authInfo = null);

Retrieves detailed information about a registered domain, including status codes, registrant, contacts, nameservers, and expiration dates.

Request parameters
Parameter Type Required Default What it means Example
domain string Yes — example.cm
authInfo string No — Optional authorization code if required by registry for info queries Secr3t!Auth
POST /domains/create Register domain (domainCreate)
domainCreate
PHP signature:
$response = $client->domainCreate(array $params);

Registers a new domain name with registrant handle, optional nameservers, contacts, and registration period.

Request parameters
Parameter Type Required Default What it means Example
name string Yes — Domain name to register example.cm
registrant string Yes — Registrant contact handle REG-CONT-01
period integer No 1 Registration period in years 1
ns array<string> No — Authoritative nameservers ["ns1.example.cm","ns2.example.cm"]
contacts object No — Additional domain contacts (admin, tech, billing) —
contacts.admin string No — REG-CONT-01
contacts.tech string No — REG-CONT-01
contacts.billing string No — REG-CONT-01
authInfo string No — Custom authorization password (generated if omitted) RandomStr0ngPass!
POST /domains/renew Renew domain (domainRenew)
domainRenew
PHP signature:
$response = $client->domainRenew(string $domain, string $currentExpiryDate, int $periodYears = 1);

Renews a domain registration for a specified number of years.

Request parameters
Parameter Type Required Default What it means Example
domain string Yes — example.cm
currentExpiryDate string (date) Yes — Current expiration date formatted as YYYY-MM-DD 2025-01-15
periodYears integer No 1 1
POST /domains/transfer Transfer domain (domainTransfer)
domainTransfer
PHP signature:
$response = $client->domainTransfer(string $domain, string $authInfo, int $periodYears = 1);

Requests a domain transfer from another registrar using an authorization code (EPP key).

Request parameters
Parameter Type Required Default What it means Example
domain string Yes — example.cm
authInfo string Yes — Authorization code (transfer secret) TransferKey!2026
periodYears integer No 1 1
POST /domains/delete Delete domain (domainDelete)
domainDelete
PHP signature:
$response = $client->domainDelete(string $domain);

Requests immediate deletion of a domain name.

Request parameters
Parameter Type Required Default What it means Example
domain string Yes — example.cm
POST /domains/restore Restore domain (domainRestore)
domainRestore
PHP signature:
$response = $client->domainRestore(string $domain);

Requests restoration of a domain in redemption or pending delete period.

Request parameters
Parameter Type Required Default What it means Example
domain string Yes — example.cm
POST /domains/update-nameservers Update domain nameservers (domainUpdateNameservers)
domainUpdateNameservers
PHP signature:
$response = $client->domainUpdateNameservers(string $domain, array $nameservers, array $removeNameservers = []);

Adds and/or removes authoritative nameservers on a domain.

Request parameters
Parameter Type Required Default What it means Example
domain string Yes — example.cm
nameservers array<string> Yes — Nameservers to add ["ns1.newhost.cm","ns2.newhost.cm"]
removeNameservers array<string> No — Nameservers to remove ["ns1.oldhost.cm"]
POST /domains/update-contacts Update domain contacts (domainUpdateContacts)
domainUpdateContacts
PHP signature:
$response = $client->domainUpdateContacts(string $domain, array $old, array $new);

Replaces domain contact handles (admin, tech, billing) using old vs new maps.

Request parameters
Parameter Type Required Default What it means Example
domain string Yes — example.cm
old object Yes — {"admin":"OLD-ADMIN-01"}
new object Yes — {"admin":"NEW-ADMIN-02"}
POST /domains/theft-protection Toggle transfer lock / theft protection (domainUpdateTheftProtection)
domainUpdateTheftProtection
PHP signature:
$response = $client->domainUpdateTheftProtection(string $domain, bool $enabled);

Adds or removes the clientTransferProhibited status on the domain.

Request parameters
Parameter Type Required Default What it means Example
domain string Yes — example.cm
enabled boolean Yes — True to lock (prohibit transfer), false to unlock true
POST /domains/dnssec Manage DNSSEC SecDNS records (domainUpdateDnssec)
domainUpdateDnssec
PHP signature:
$response = $client->domainUpdateDnssec(string $domain, array $records, string $action = 'add');

Adds or removes SecDNS delegation signer (DS) records on a domain.

Request parameters
Parameter Type Required Default What it means Example
domain string Yes — example.cm
records array<object> Yes — —
records[].keyTag integer Yes — 12345
records[].algorithm integer Yes — DNSSEC Algorithm (e.g. 8 for RSA/SHA-256, 13 for ECDSA P-256) 13
records[].digestType integer Yes — Digest type (e.g. 2 for SHA-256) 2
records[].digest string Yes — Hexadecimal digest string 49FD46E6C4B45C55D4AC49DA1B7728F6B8660EC3BB3A36E154766C4EB352C6F8
action string No add add

Contacts

POST /contacts/check Check contact handle availability (contactCheck)
contactCheck
PHP signature:
$response = $client->contactCheck(string|array $contactIds);

Checks if one or multiple contact identifiers are available.

Request parameters
Parameter Type Required Default What it means Example
contactIds string | array<string> Yes — REG-CONT-01
POST /contacts/info Read contact details (contactInfo)
contactInfo
PHP signature:
$response = $client->contactInfo(string $contactId, ?string $authInfo = null);

Retrieves full details for a contact handle.

Request parameters
Parameter Type Required Default What it means Example
contactId string Yes — REG-CONT-01
authInfo string No — —
POST /contacts/create Create contact (contactCreate)
contactCreate
PHP signature:
$response = $client->contactCreate(array $params);

Registers a new contact object with postal address, voice, and email.

Request parameters
Parameter Type Required Default What it means Example
id string No — Custom contact handle (auto-generated if omitted) REG-CONT-01
name string Yes — Contact full name Jean Dupont
org string No — Organization name (optional) Camoo SARL
email string (email) Yes — [email protected]
voice string Yes — Telephone number in ITU format (+CC.NNNNNNNN) +237.600000000
fax string No — Fax number (optional) +237.600000001
street string Yes — Street address 1 Registry Street
city string Yes — Yaounde
sp string No — State / Province Centre
pc string No — Postal code 00000
cc string Yes — Two-letter ISO country code CM
authInfo string No — Contact authorization code (optional) AuthPass123!
POST /contacts/update Update contact (contactUpdate)
contactUpdate
PHP signature:
$response = $client->contactUpdate(array $params);

Updates attributes of an existing contact handle.

Request parameters
Parameter Type Required Default What it means Example
id string Yes — Contact handle to update REG-CONT-01
email string No — [email protected]
voice string No — +237699999999
city string No — Douala
POST /contacts/delete Delete contact (contactDelete)
contactDelete
PHP signature:
$response = $client->contactDelete(string $contactId);

Deletes an unlinked contact handle.

Request parameters
Parameter Type Required Default What it means Example
contactId string Yes — REG-CONT-01

Hosts

POST /hosts/check Check nameserver availability (hostCheck)
hostCheck
PHP signature:
$response = $client->hostCheck(string|array $hosts);

Checks if one or multiple nameserver hosts exist.

Request parameters
Parameter Type Required Default What it means Example
hosts string | array<string> Yes — ns1.example.cm
POST /hosts/info Read nameserver details (hostInfo)
hostInfo
PHP signature:
$response = $client->hostInfo(string $host);

Retrieves nameserver host status and associated glue IP addresses.

Request parameters
Parameter Type Required Default What it means Example
host string Yes — ns1.example.cm
POST /hosts/create Create nameserver with glue IPs (hostCreate)
hostCreate
PHP signature:
$response = $client->hostCreate(string $host, array $ipAddresses = []);

Creates a new nameserver host with optional IPv4 / IPv6 glue records.

Request parameters
Parameter Type Required Default What it means Example
host string Yes — ns1.example.cm
ipAddresses array<string> No — IPv4 or IPv6 glue addresses ["195.24.205.10","2001:db8::1"]
POST /hosts/delete Delete nameserver (hostDelete)
hostDelete
PHP signature:
$response = $client->hostDelete(string $host);

Deletes an unused nameserver host.

Request parameters
Parameter Type Required Default What it means Example
host string Yes — ns1.example.cm

Session & Poll

POST /session/ping Send EPP Hello ping (ping)
ping
PHP signature:
$response = $client->ping();

Sends an EPP <hello frame to test connection liveness.

POST /session/poll-req Request next poll message (pollReq)
pollReq
PHP signature:
$response = $client->pollReq();

Retrieves the next queued notification message from the registry poll queue.

POST /session/poll-ack Acknowledge poll message (pollAck)
pollAck
PHP signature:
$response = $client->pollAck(string $msgId);

Acknowledges and removes a message from the registry queue by its message ID.

Request parameters
Parameter Type Required Default What it means Example
msgId string Yes — 12345

Designed for product teams

One core, many delivery channels

The generic client separates protocol, services, licensing, and framework integration. That makes it suitable for a WHMCS module today and a WordPress plugin or custom SaaS integration tomorrow.

  • PSR-4 PHP 8.1+ package structure
  • Ed25519 license and lease validation
  • Direct EPP traffic from your infrastructure
  • Testable services instead of framework-bound hooks
Integration roadmap
01

Generic PHP library
Core EPP client and licensing foundation

02

WHMCS module
ANTIC registrar integration

03

WordPress plugin
Planned domain automation for WordPress ecosystems

Build with Camoo

Need EPP connectivity for your product?

Talk to our team about the generic client, a WHMCS registrar integration, or the future WordPress plugin.

Start a conversation