2017 © Pedro Peláez
 

library dyn-php

Dyn PHP SDK - for interaction with Dyn's product APIs

image

dyninc/dyn-php

Dyn PHP SDK - for interaction with Dyn's product APIs

  • Saturday, May 5, 2018
  • by tfountain
  • Repository
  • 28 Watchers
  • 18 Stars
  • 23,202 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 27 Forks
  • 4 Open issues
  • 18 Versions
  • 14 % Grown

The README.md

Dyn PHP SDK

This SDK allows PHP developers to interact with Dyn's product APIs from within their PHP applications. Feedback is welcome - please reach out via pull request, GitHub issue, or via. our Community forum., (*1)

Requirements

Requires PHP 7.4 or above. The cURL extension is recommended (although not required), and will be used if present., (*2)

Installation

The best way to install this SDK is with Composer. With Composer installed, run:, (*3)

composer require dyninc/dyn-php

from the command line., (*4)

Quickstart - DNS

use Dyn\TrafficManagement;
use Dyn\TrafficManagement\Record\A;

$tm = new TrafficManagement('customerName', 'username', 'password');

// login
$tm->createSession();

// retrieve zone
$zone = $tm->getZone('example.com');

// configure a new record
$record = new A();
$record->setAddress('127.0.0.1');

// create the new record
$zone->createRecord($record, 'test.example.com');

// publish zone changes
$zone->publish();

// logout
$tm->deleteSession();

Quickstart - Email

use Dyn\MessageManagement;
use Dyn\MessageManagement\Mail;

$mm = new MessageManagement('YOUR API KEY');

// setup the message
$mail = new Mail();
$mail->setFrom('user@example.com', 'Joe Bloggs')
     ->setTo('janedoe@example.com')
     ->setSubject('Email sent via. Dyn SDK')
     ->setBody('The text of the email');

// send it
$mm->send($mail);

More detailed examples can be found in the examples folder., (*5)

API Endpoints Supported

  • Traffic Management - Session API: create/destroy/refresh
  • Traffic Management - Record API: AAAA A CERT CNAME DHCID DNSKEY DS IPSECKEY KEY LOC MX NAPTR NS NSAP PTR PX RP SOA SPF SRV SSHFP TXT
  • Traffic Management - Zone API: list/get/publish/freeze/thaw/getChanges/discardChanges
  • Traffic Management - HTTP Redirect service: create/update/list/destroy
  • Traffic Management - Dynamic DNS service: create/update/list/destroy
  • Message Management - All endpoints supported

Testing

With the Composer packages installed, unit tests can be run from this folder using the command:, (*6)

./vendor/bin/phpunit --configuration test/phpunit.xml

The Versions

05/05 2018

dev-master

9999999-dev

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

05/05 2018

0.11.0

0.11.0.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

13/03 2018

0.10.2

0.10.2.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

08/02 2018

0.10.1

0.10.1.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

18/09 2017

0.10.0

0.10.0.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

18/05 2017

0.9.0

0.9.0.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

23/11 2016

0.8.1

0.8.1.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

03/11 2016

0.8.0

0.8.0.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

05/05 2016

0.7.1

0.7.1.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

05/05 2016

0.7.0

0.7.0.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

17/04 2016

0.6.0

0.6.0.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

27/03 2015

0.5.1

0.5.1.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

19/02 2015

0.5.0

0.5.0.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

04/11 2014

0.4.1

0.4.1.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

15/08 2014

0.4.0

0.4.0.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

email sdk dns dynect dyn

07/08 2014

0.3.0

0.3.0.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

sdk dns dynect dyn

22/07 2014

0.2.0

0.2.0.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

sdk dns dynect dyn

18/07 2014

0.1.0

0.1.0.0

Dyn PHP SDK - for interaction with Dyn's product APIs

  Sources   Download

BSD-3-Clause

The Requires

 

sdk dns dynect dyn