2017 © Pedro Peláez
 

symfony-bundle epp-bundle

A Symfony Bundle to wrap the EPP connection functionality.

image

xpanel/epp-bundle

A Symfony Bundle to wrap the EPP connection functionality.

  • Monday, June 18, 2018
  • by XPanel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 42 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

EppBundle

A Symfony Bundle to wrap the EPP connection functionality in a more "classy" way., (*1)

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock, (*2)

Installation

Step 1: Install the Bundle

Require the Bundle with composer:, (*3)

$ composer require xpanel/epp-bundle

Step 2: Enable the Bundle

Register the bundle in AppKernel:, (*4)

``` php <?php // app/AppKernel.php, (*5)

public function registerBundles() { $bundles = [ // ... new Xpanel\Bundle\EppBundle\XpanelEppBundle(), ]; }, (*6)


## Usage ``` php <?php use Xpanel\Bundle\EppBundle\Exception\EppException; public function indexAction() { //... try { $epp = $this->container->get('xpanel_epp'); $info = array( 'host' => 'epp.xpanel.com', 'port' => 700, 'timeout' => 30, 'verify_peer' => false, 'cafile' => '/etc/pki/tls/certs/ca-bundle.crt', 'local_cert' => '/etc/pki/tls/certs/cert.crt', 'local_pk' => '/etc/pki/tls/private/private.key', 'passphrase' => 'XPanel.Online', 'allow_self_signed' => true ); $epp->connect($info); $epp->login(array( 'clID' => 'Client123', 'pw' => 'Pass-W0rd', 'prefix' => 'XP' )); $checkparams = array( 'domains' => array('test1.xy','test2.xy') ); $domainCheck = $epp->domainCheck($checkparams); $infoparams = array( 'domainname' => 'test1.xy', 'authInfoPw' => 'aA1+XPanel+EPP' ); $domainInfo = $epp->domainInfo($infoparams); $createparams = array( 'domainname' => 'test1.xy', 'period' => 2, 'nss' => array('NS1.XPANEL.NET','NS2.XPANEL.NET'), 'registrant' => 'XP-1122334455777', 'contacts' => array( 'XP-1122334455777' => 'admin', 'XP-1122334455777' => 'tech', 'XP-1122334455777' => 'billing' ), 'authInfoPw' => 'aA1+XPanel+EPP' ); $domainCreate = $epp->domainCreate($createparams); } catch (EppException $e) { echo 'Error: ', $e->getMessage(); } echo '
';
print_r($domainCheck);
print_r($domainInfo);
print_r($domainCreate);
echo '
'; //... }

Questions

Feel free to contact me, (*7)

made with ♥, (*8)

The Versions

18/06 2018

dev-master

9999999-dev https://github.com/XPanel/EPP-Bundle

A Symfony Bundle to wrap the EPP connection functionality.

  Sources   Download

MIT

The Requires

 

ssl epp

24/11 2017

v1.0.2

1.0.2.0 https://github.com/XPanel/EPP-Bundle

A Symfony Bundle to wrap the EPP connection functionality.

  Sources   Download

MIT

The Requires

 

ssl epp

24/11 2017

v1.0.1

1.0.1.0 https://github.com/XPanel/EPP-Bundle

A Symfony Bundle to wrap the EPP connection functionality.

  Sources   Download

MIT

The Requires

 

ssl epp