Client and connection
Low-level TLS sockets, EPP framing, login, logout, timeouts, and connection configuration.
+237 661562859
Camoo developer platform
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
$client = new EppClient($config);
$client->login();
$client->domainCheck('example.cm');
Direct registry connection
One EPP foundation
Keep registry protocol details behind a tested, reusable PHP API instead of rebuilding EPP transport and XML handling in every application.
Low-level TLS sockets, EPP framing, login, logout, timeouts, and connection configuration.
Check, create, update, renew, transfer, and information workflows for registry integrations.
Reusable contact, nameserver, polling, and SecDNS building blocks for compliant EPP services.
Developer documentation
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.
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
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,
]);
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 |
|---|---|---|---|---|
host | string | Build-dependent | Embedded in commercial release | EPP registry hostname or IP address in source/test builds; commercial releases bind this value during generation. |
port | int | Build-dependent | 700 | Registry TCP port in source/test builds; commercial releases bind the production port during generation. |
clid | string | Yes | — | Registrar/client identifier issued by the registry. |
password | string | Yes | — | EPP password. Keep it in an environment variable or secret manager. |
prefix | string | No | REG | Short registrar prefix used in generated transaction IDs. |
tls | bool | No | true | Enables TLS after the TCP connection. Keep true for production registries. |
timeout | int | No | 30 | Connection and socket timeout in seconds. |
ssl | array<string,mixed> | No | [] | TLS options such as verify_peer, cafile, local_cert, and local_pk. |
language | string | No | en | Language sent in the EPP login options. |
templates_dir | ?string | No | null | Directory containing registry XML templates for registry-specific variants. |
template_names | array<string,string> | No | [] | Maps an operation name to a template basename, for example domain_info => cm_domain_info. |
template_values | array<string,array> | No | [] | Default literal placeholder values per operation. |
The client uses normal PHP arrays. Do not send XML here unless a method explicitly documents a raw XML field.
| Method | Required parameters | Optional 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 handle | period: 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 name | None. |
domainRestore(string $domain) | $domain: domain name | None. |
domainUpdateAuthCode(string $domain, string $authCode) | $domain: domain name; $authCode: new authorization code | None. |
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 fields accept the standard names below. Antic aliases are also accepted where shown.
| Method | Required | Optional/default |
|---|---|---|
contactCreate(array $params) | name, email, voice or phone, street or address_1, city, cc or ccode: all string | id: string; authInfo: string; org/company, sp/state, pc/zipcode, fax: string; proxied: bool |
contactUpdate(array $params) | id or handle: string | Friendly fields such as email, phone, city, or raw XML fragments add/rem/chg: string |
contactDelete(string $contactId) | $contactId: contact handle | None. |
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 hostname | Both address arguments are list<string> and default to [] |
hostDelete(string $host) | $host: nameserver hostname | None. |
$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);
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' => '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.All methods return EppResponse unless noted. Use these signatures as the source of truth when integrating the encoded package.
| Method | Arguments | Purpose |
|---|---|---|
contactCheck(string|array $contactIds) | One contact handle or list<string>. | Check contact availability. |
contactInfo(string $contactId, ?string $authInfo = null) | $contactId required; $authInfo optional ?string | Read contact details. |
hostCheck(string|array $hosts) | One hostname or list<string>. | Check nameserver availability. |
hostInfo(string $host) | $host required string | Read 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 string | Adds clientHold. |
domainUnsuspend(string $domain, string $reason = '') | $domain required; $reason optional string | Removes 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 keys | Replace 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 string | Acknowledge the poll message ID returned by the registry. |
rawXml(string $xml) | $xml required string | Advanced escape hatch for a complete EPP command. |
Use one authenticated session for related operations.
$client->runInSession(function () use ($client): void {
$client->domainCheck('example.cm');
$client->domainInfo('example.cm');
});
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);
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);
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
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();
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
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
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/check
Check domain availability (domainCheck)
domainCheck
$response = $client->domainCheck(string|array $domains);
Checks if one or multiple domain names are available for registration.
| Parameter | Type | Required | Default | What it means | Example |
|---|---|---|---|---|---|
domains |
string | array<string> |
Yes | — | example.cm |
/domains/info
Retrieve domain details (domainInfo)
domainInfo
$response = $client->domainInfo(string $domain, ?string $authInfo = null);
Retrieves detailed information about a registered domain, including status codes, registrant, contacts, nameservers, and expiration dates.
| 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 |
/domains/create
Register domain (domainCreate)
domainCreate
$response = $client->domainCreate(array $params);
Registers a new domain name with registrant handle, optional nameservers, contacts, and registration period.
| 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! |
/domains/renew
Renew domain (domainRenew)
domainRenew
$response = $client->domainRenew(string $domain, string $currentExpiryDate, int $periodYears = 1);
Renews a domain registration for a specified number of years.
| 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 |
/domains/transfer
Transfer domain (domainTransfer)
domainTransfer
$response = $client->domainTransfer(string $domain, string $authInfo, int $periodYears = 1);
Requests a domain transfer from another registrar using an authorization code (EPP key).
| 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 |
/domains/delete
Delete domain (domainDelete)
domainDelete
$response = $client->domainDelete(string $domain);
Requests immediate deletion of a domain name.
| Parameter | Type | Required | Default | What it means | Example |
|---|---|---|---|---|---|
domain |
string |
Yes | — | example.cm |
/domains/restore
Restore domain (domainRestore)
domainRestore
$response = $client->domainRestore(string $domain);
Requests restoration of a domain in redemption or pending delete period.
| Parameter | Type | Required | Default | What it means | Example |
|---|---|---|---|---|---|
domain |
string |
Yes | — | example.cm |
/domains/update-nameservers
Update domain nameservers (domainUpdateNameservers)
domainUpdateNameservers
$response = $client->domainUpdateNameservers(string $domain, array $nameservers, array $removeNameservers = []);
Adds and/or removes authoritative nameservers on a domain.
| 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"] |
/domains/update-contacts
Update domain contacts (domainUpdateContacts)
domainUpdateContacts
$response = $client->domainUpdateContacts(string $domain, array $old, array $new);
Replaces domain contact handles (admin, tech, billing) using old vs new maps.
| 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"} |
/domains/theft-protection
Toggle transfer lock / theft protection (domainUpdateTheftProtection)
domainUpdateTheftProtection
$response = $client->domainUpdateTheftProtection(string $domain, bool $enabled);
Adds or removes the clientTransferProhibited status on the domain.
| 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 |
/domains/dnssec
Manage DNSSEC SecDNS records (domainUpdateDnssec)
domainUpdateDnssec
$response = $client->domainUpdateDnssec(string $domain, array $records, string $action = 'add');
Adds or removes SecDNS delegation signer (DS) records on a domain.
| 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/check
Check contact handle availability (contactCheck)
contactCheck
$response = $client->contactCheck(string|array $contactIds);
Checks if one or multiple contact identifiers are available.
| Parameter | Type | Required | Default | What it means | Example |
|---|---|---|---|---|---|
contactIds |
string | array<string> |
Yes | — | REG-CONT-01 |
/contacts/info
Read contact details (contactInfo)
contactInfo
$response = $client->contactInfo(string $contactId, ?string $authInfo = null);
Retrieves full details for a contact handle.
| Parameter | Type | Required | Default | What it means | Example |
|---|---|---|---|---|---|
contactId |
string |
Yes | — | REG-CONT-01 |
|
authInfo |
string |
No | — | — |
/contacts/create
Create contact (contactCreate)
contactCreate
$response = $client->contactCreate(array $params);
Registers a new contact object with postal address, voice, and email.
| 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! |
/contacts/update
Update contact (contactUpdate)
contactUpdate
$response = $client->contactUpdate(array $params);
Updates attributes of an existing contact handle.
| 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 |
/contacts/delete
Delete contact (contactDelete)
contactDelete
$response = $client->contactDelete(string $contactId);
Deletes an unlinked contact handle.
| Parameter | Type | Required | Default | What it means | Example |
|---|---|---|---|---|---|
contactId |
string |
Yes | — | REG-CONT-01 |
/hosts/check
Check nameserver availability (hostCheck)
hostCheck
$response = $client->hostCheck(string|array $hosts);
Checks if one or multiple nameserver hosts exist.
| Parameter | Type | Required | Default | What it means | Example |
|---|---|---|---|---|---|
hosts |
string | array<string> |
Yes | — | ns1.example.cm |
/hosts/info
Read nameserver details (hostInfo)
hostInfo
$response = $client->hostInfo(string $host);
Retrieves nameserver host status and associated glue IP addresses.
| Parameter | Type | Required | Default | What it means | Example |
|---|---|---|---|---|---|
host |
string |
Yes | — | ns1.example.cm |
/hosts/create
Create nameserver with glue IPs (hostCreate)
hostCreate
$response = $client->hostCreate(string $host, array $ipAddresses = []);
Creates a new nameserver host with optional IPv4 / IPv6 glue records.
| 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"] |
/hosts/delete
Delete nameserver (hostDelete)
hostDelete
$response = $client->hostDelete(string $host);
Deletes an unused nameserver host.
| Parameter | Type | Required | Default | What it means | Example |
|---|---|---|---|---|---|
host |
string |
Yes | — | ns1.example.cm |
/session/ping
Send EPP Hello ping (ping)
ping
$response = $client->ping();
Sends an EPP <hello frame to test connection liveness.
/session/poll-req
Request next poll message (pollReq)
pollReq
$response = $client->pollReq();
Retrieves the next queued notification message from the registry poll queue.
/session/poll-ack
Acknowledge poll message (pollAck)
pollAck
$response = $client->pollAck(string $msgId);
Acknowledges and removes a message from the registry queue by its message ID.
| Parameter | Type | Required | Default | What it means | Example |
|---|---|---|---|---|---|
msgId |
string |
Yes | — | 12345 |
Designed for product teams
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.
Generic PHP library
Core EPP client and licensing foundation
WHMCS module
ANTIC registrar integration
WordPress plugin
Planned domain automation for WordPress ecosystems
Build with Camoo
Talk to our team about the generic client, a WHMCS registrar integration, or the future WordPress plugin.
Start a conversation