GithubHelp home page GithubHelp logo

centralnic / php-epp Goto Github PK

View Code? Open in Web Editor NEW
43.0 11.0 25.0 82 KB

EPP Support for PHP. This repository is a mirror of the offical repository on CentralNic's GitLab server.

Home Page: https://gitlab.centralnic.com/centralnic/php-epp

License: GNU General Public License v2.0

PHP 100.00%
epp-protocol epp-registry epp-client php-library php

php-epp's Introduction

README

EPP is the Extensible Provisioning Protocol. EPP (defined in RFC 5730 and subsequent documents) is an application layer client-server protocol for the provisioning and management of objects stored in a shared central repository. Specified in XML, the protocol defines generic object management operations and an extensible framework that maps protocol operations to objects. As of writing, its only well-developed application is the provisioning of Internet domain names, hosts, and related contact details.

RFC 3734 defines a TCP based transport model for EPP, and the Net_EPP_Client class included in this distribution implements a client for that model. You can establish and manage EPP connections and send and receive responses over these connections.

Net_EPP also provides a high-level EPP frame builder (Net_EPP_Frame) which can be used to construct frames that comply with the EPP specification and can be used to interact with a server.

The class is organized on similar lines to the Net::EPP::Client Perl module.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Example use case in code:

//load the autoloader class
require_once("php-epp/Net/EPP.php");

if(Net_EPP::autoload('Client')){
    print "autoloading succeeded\n";
}

$epp=new Net_EPP_Client();

$greeting=$epp->connect('servername','port',20);

php-epp's People

Contributors

brynhood avatar gbxyz avatar maryoflaherty avatar nkukard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-epp's Issues

Non-static method PEAR::isError()

in Protocol.php in line 73
PEAR::isError() is not a static method

PEAR Version: 1.9.4
PHP Version: 5.3.16
OS Windows 7

I fixed this by creating an object:

$pear = new PEAR;
if ($pear->isError($hdr = Net_EPP_Protocol::_fread_nb($socket,4))) {
return $hdr;
}

SSL3_WRITE_PENDING issue

Hello,

we are using this package..

write works for 20 kb file and anything over 20 kb, we are getting this error.

Note sure if it is error with OpenSSL on linux or anything can be changed in this package to fix the problem.

Warning: fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry in

any suggestion is appreciated

-SK

Registrar Error; Error connecting to tls://epp.centralnic.com:700: (code 0)

Hello,
I have added my server's IPs at CentralNIC registers console's access list. But still getting error "Registrar Error, Error connecting to tls://epp.centralnic.com:700: (code 0)"
I have tasted the module with WHMCS v7.x, 6.x and 5.3.x. But getting same error. Please tell me how to solve it. Thanks
-Best Regards
Mostafa Kamal
capture

EPP Logout frame

The library is missing a frame that terminates the EPP connection. I'd suggest adding a
Command/Logout.php

<?php

/**
* @package Net_EPP
*/
class Net_EPP_Frame_Command_Logout extends Net_EPP_Frame_Command {
    function __construct() {
        parent::__construct('logout');

        $this->clID = $this->createElement('clID');
        $this->command->appendChild($this->clID);
    }
}
?>

debug_log undeclared function

EPP/Frame/Command.php, line 32 calls an undeclared function debug_log.

debug_log("%s::%s(%s, %s)", CLASS, FUNCTION, $name, $value);

Could you please either delete this line or declare method.

Thank you,
Vlad

php-epp error

Warning: require_once(Net/EPP/Protocol.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\php-epp\Net\EPP\Client.php on line 27

Fatal error: require_once() [function.require]: Failed opening required 'Net/EPP/Protocol.php' (include_path='.;C:\php\pear') in C:\wamp\www\php-epp\Net\EPP\Client.php on line 27

php-epp error,

I am getting the following error: but I have Protocol.php file in the directory and pear path is correct can someone help me please ?

Warning: require_once(Net/EPP/Protocol.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\php-epp\Net\EPP\Client.php on line 27

Fatal error: require_once() [function.require]: Failed opening required 'Net/EPP/Protocol.php' (include_path='.;C:\php\pear') in C:\wamp\www\php-epp\Net\EPP\Client.php on line 27

Net_EPP_Frame_Command constructor requires a type argument

Epp/Frame/Command.php, line 8

function __construct($command, $type) {

The constructor is declared so that $type variable is required although many classes (for instrance, Login) call the parent constructor with only $command specified.

The line should be changed to

function __construct($command, $type="") {

And line 17 should be changed from
if (isset($this->type)) {
to
if (!empty($this->type)) {

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.