metaregistrar / php-epp-client
Object-oriented PHP EPP Client
Installs: 85 131
Dependents: 5
Suggesters: 0
Security: 0
Stars: 216
Watchers: 17
Forks: 161
Open Issues: 4
Requires
- php: ^7|^8.0
- ext-dom: *
- ext-libxml: *
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-11-13 13:35:21 UTC
README
Object-oriented PHP EPP Client.
Welcome to the "object-oriented EPP client in PHP" project.
This project supports the following:
- Full EPP 57xx RFC standard
- Extensible PHP objects to add registry-specific additions
- Rock-solid object-oriented programming, object inheritance and exception handling
- Interface tested and in use with a registrar that handles 600.000+ domain names
- Public/private key client certificates for connecting to EPP service (for example see Registries/IIS)
- Connection to EPP via HTTP/SSL (for example see Registries/Openprovider)
- DNSSEC transactions
- Registry sunrise, landrush and claims periods (draft-ietf-eppext-launchphase)
- TMCH/TMDB CNIS retrieval examples with standard ICANN registrar message
This code will provide you with a fully functional EPP client to connect to any registry world-wide that supports EPP. All code is organized in objects, so connecting to a new registry is just a matter of object re-use and extension. Sample registry connections are provided in the Registries directory.
Currently supported registries:
- SIDN (.nl)
- dotAmsterdam
- Donuts
- EurID (.eu)
- DNS Belgium (.be .vlaanderen .brussels)
- .CO.NL
- dotFRL
- IIS (.nu and .se)
- CarDNS (.hr)
- Metaregistrar
- Nic.AT (.at)
- Key Systems RRPPROXY
- .PT
- Switch (.ch)
- Openprovider
- Ficora (.fi)
- DNS.PT (.pt)
- Norid (.no)
- Arnes (.si)
- Nic.lv (.lv)
All code changes are tested automatically with the phpunit tests in the Tests directory
Example scipts in the main directory:
How to use this repository
- Check out the latest version from github. (Or
composer require metaregistrar/php-epp-client
) - Use the
Examples/checkdomain.php
and create a connection to your favorite registry (for examplenew Metaregistrar\EPP\metaregEppConnection()
). - Create a
settings.ini
in with the following contents:
interface=eppConnection
hostname=ssl://epp-ote.metaregistrar.com
port=7000
userid=xxxxxxxx
password=xxxxxxxxx
logging=true
certificatefile=/home/xxxxxx/xxxxxxx.pem
certificatepassword=xxxxxxx
verifypeer=true/false
verifypeername=true/false
allowselfsigned=true/false
- Now,
checkdomain.php
should be functioning and checking domains.
If you do not want to use settings.ini
files in the Registries directory, you can create a connection as follows:
$conn = Metaregistrar\EPP\eppConnection::create('path-to-settings.ini');
Or set all parameters individually:
$conn = new Metaregistrar\EPP\eppConnection();
$conn->setHostname('ssl://epp-ote.metaregistrar.com'); // Hostname may vary depending on the registry selected
$conn->setPort(7000); // Port may vary depending on the registry selected
$conn->setUsername('xxxxxxxx');
$conn->setPassword('xxxxxxxxx');