From 6725818cd3a6dcd1d10f2a46918feff1c1770971 Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Thu, 16 Feb 2023 19:22:04 +0200 Subject: [PATCH] Create DomainReport.php --- examples/DomainReport.php | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 examples/DomainReport.php diff --git a/examples/DomainReport.php b/examples/DomainReport.php new file mode 100644 index 0000000..28f12c5 --- /dev/null +++ b/examples/DomainReport.php @@ -0,0 +1,45 @@ + 'test.example' + ); + $domainReport = $epp->domainReport($params); + + if (array_key_exists('error', $domainReport)) + { + echo 'DomainReport Error: ' . $domainReport['error'] . PHP_EOL; + } + else + { + echo "DomainReport result: " . $domainReport['code'] . ": " . $domainReport['msg'] . PHP_EOL; + } + + $logout = $epp->logout(); + + echo 'Logout Result: ' . $logout['code'] . ': ' . $logout['msg'][0] . PHP_EOL; +} +catch(EppException $e) +{ + echo 'Error: ', $e->getMessage(); +}