PHPackages                             dyninc/dyn-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. dyninc/dyn-php

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

dyninc/dyn-php
==============

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

0.12.0(4y ago)22111.3k↓37.5%28[2 PRs](https://github.com/dyninc/dyn-php/pulls)3BSD-3-ClausePHPPHP &gt;=7.4

Since Jul 18Pushed 4y ago24 watchersCompare

[ Source](https://github.com/dyninc/dyn-php)[ Packagist](https://packagist.org/packages/dyninc/dyn-php)[ RSS](/packages/dyninc-dyn-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (19)Used By (3)

Dyn PHP SDK
===========

[](#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](http://www.dyncommunity.com/).

Requirements
------------

[](#requirements)

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

Installation
------------

[](#installation)

The best way to install this SDK is with [Composer](http://getcomposer.org). With Composer installed, run:

```
composer require dyninc/dyn-php

```

from the command line.

Quickstart - DNS
----------------

[](#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
------------------

[](#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](examples) folder.

API Endpoints Supported
=======================

[](#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
=======

[](#testing)

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

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

```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 82.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~158 days

Recently: every ~384 days

Total

18

Last Release

1626d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.3.23

0.12.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/e5d59064cc9ccc7cf03693549ae65934cc091780a2a9b8d89007797bee7dbb0d?d=identicon)[tfountain](/maintainers/tfountain)

---

Top Contributors

[![tfountain](https://avatars.githubusercontent.com/u/387569?v=4)](https://github.com/tfountain "tfountain (57 commits)")[![clwells](https://avatars.githubusercontent.com/u/8984720?v=4)](https://github.com/clwells "clwells (5 commits)")[![josezenem](https://avatars.githubusercontent.com/u/377520?v=4)](https://github.com/josezenem "josezenem (2 commits)")[![BillKeenan](https://avatars.githubusercontent.com/u/1319630?v=4)](https://github.com/BillKeenan "BillKeenan (1 commits)")[![jtbrush56](https://avatars.githubusercontent.com/u/2626781?v=4)](https://github.com/jtbrush56 "jtbrush56 (1 commits)")[![fogeytron](https://avatars.githubusercontent.com/u/808150?v=4)](https://github.com/fogeytron "fogeytron (1 commits)")[![danielfinke](https://avatars.githubusercontent.com/u/2608395?v=4)](https://github.com/danielfinke "danielfinke (1 commits)")[![DemonTPx](https://avatars.githubusercontent.com/u/2570835?v=4)](https://github.com/DemonTPx "DemonTPx (1 commits)")

---

Tags

sdkemaildnsdynectdyn

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dyninc-dyn-php/health.svg)

```
[![Health](https://phpackages.com/badges/dyninc-dyn-php/health.svg)](https://phpackages.com/packages/dyninc-dyn-php)
```

###  Alternatives

[mailerlite/mailerlite-api-v2-php-sdk

MailerLite API v2 PHP SDK

801.7M15](/packages/mailerlite-mailerlite-api-v2-php-sdk)[slm/mail

Integration of various email service providers in the Laminas\\Mail

108732.4k1](/packages/slm-mail)[mlocati/spf-lib

Parse, build and validate SPF (Sender Policy Framework) DNS records

67867.9k2](/packages/mlocati-spf-lib)[railsware/mailtrap-php

The Mailtrap SDK provides methods for all API functions.

56770.5k](/packages/railsware-mailtrap-php)[hafael/azure-mailer-driver

Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. 🚀

14109.2k](/packages/hafael-azure-mailer-driver)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
