PHPackages                             graze/dynamark3-client - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. graze/dynamark3-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

graze/dynamark3-client
======================

A Dynamark Communication Protocol 3 client, written in PHP

v2.1.0(7y ago)724.8k↓41.7%PHPCI failing

Since Feb 18Pushed 5y ago12 watchersCompare

[ Source](https://github.com/graze/dynamark3-client)[ Packagist](https://packagist.org/packages/graze/dynamark3-client)[ RSS](/packages/graze-dynamark3-client/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

dynamark3-client
================

[](#dynamark3-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e67cd894ed642cca035481a09b78f3e7280d7ef793d2bd4be48e4b121b35020d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6772617a652f64796e616d61726b332d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/graze/dynamark3-client)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/fc51ec27dd0fc96aee1f8119b10cec88fb1d45c192f7145246c7c0e36c33e253/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6772617a652f64796e616d61726b332d636c69656e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/graze/dynamark3-client)[![Coverage Status](https://camo.githubusercontent.com/fb98387b568b85d54418272dc50d811c2bb75292cb90a30df2162792007f09d2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6772617a652f64796e616d61726b332d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/graze/dynamark3-client/code-structure)[![Quality Score](https://camo.githubusercontent.com/3a76aeaae74dfb539efb611bae01731f5db720d2d6deec7ba8cae45ec7f40192/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6772617a652f64796e616d61726b332d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/graze/dynamark3-client)[![Total Downloads](https://camo.githubusercontent.com/5fa76b099d48c29e3218d16e9380c396655edef24626acf88c6b7fa6e7a70feb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6772617a652f64796e616d61726b332d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/graze/dynamark3-client)

A Dynamark Communication Protocol 3 client, written in PHP

Install
-------

[](#install)

Via Composer

```
composer require graze/dynamark3-client
```

Usage
-----

[](#usage)

### Instantiating a client

[](#instantiating-a-client)

Use the `factory` method to return a `Dynamark3ClientInterface` instance:

```
$client = Graze\Dynamark3Client\Dynamark3Client::factory();
...
```

### Issuing commands

[](#issuing-commands)

Connect to a remote endpoint using `connect`:

```
...
$dsn = '127.0.0.1:20000';
$client->connect($dsn);
...
```

Commands are then simply method names that can be called directly on the client:

```
...
// issue a GETXML command
$resp = $client->getxml();
...
```

Commands containing spaces are represented using [camelCase](https://en.wikipedia.org/wiki/CamelCase):

```
...
// issue a MARK STOP command
$resp = $client->markStop();
...
```

Command arguments are passed as method paramaters:

```
...
// issue a DELETEFILE command
$path = '\hard disk\domino\filecoding\codes.txt';
$resp = $client->deletefile($path);
...
```

### Responses

[](#responses)

The client will respond with a `Dynamark3ResponseInterface` object with the following methods:

```
/**
 * Any response from the server up until a prompt is encountered.
 *
 * @return string
 */
public function getResponseText();

/**
 * Whether an error prompt was encountered.
 *
 * @return bool
 */
public function isError();

/**
 * The error code returned from the Dynamark 3 server
 *
 * @return int
 */
public function getErrorCode();
```

Handling a response:

```
...
$resp = $client->getxml();
if ($resp->isError()) {
    echo sprintf('the server responded with error code: [%d]', $resp->getErrorCode());
    // look up the error code in the Dynamark 3 protocol docs
    return;
}

$xml = $resp->getResponseText();
// do something fun with the xml
```

Example success response:

[![Screenshot of terminal text showing a success response](https://cloud.githubusercontent.com/assets/1314694/13116875/8d932774-d595-11e5-8f48-51198eb9e8ba.png)](https://cloud.githubusercontent.com/assets/1314694/13116875/8d932774-d595-11e5-8f48-51198eb9e8ba.png)

Example error response:

[![Screenshot of terminal text showing an error response](https://cloud.githubusercontent.com/assets/1314694/13116912/b3aa9424-d595-11e5-975e-d59728c32205.png)](https://cloud.githubusercontent.com/assets/1314694/13116912/b3aa9424-d595-11e5-975e-d59728c32205.png)

Some commands will return interesting data in their response, e.g. `getxml`:

[![Screenshot of terminal text showing XML response](https://cloud.githubusercontent.com/assets/1314694/13116923/c287ab80-d595-11e5-84cd-404de2b0a598.png)](https://cloud.githubusercontent.com/assets/1314694/13116923/c287ab80-d595-11e5-84cd-404de2b0a598.png)

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
make test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [John Smith](https://github.com/john-n-smith)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 81.4% 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 ~584 days

Total

3

Last Release

2610d ago

Major Versions

v1.0.0 → v2.0.02016-03-02

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/637788?v=4)[graze.com](/maintainers/graze)[@graze](https://github.com/graze)

![](https://avatars.githubusercontent.com/u/1314694?v=4)[John Smith](/maintainers/john-n-smith)[@john-n-smith](https://github.com/john-n-smith)

---

Top Contributors

[![john-n-smith](https://avatars.githubusercontent.com/u/1314694?v=4)](https://github.com/john-n-smith "john-n-smith (35 commits)")[![biggianteye](https://avatars.githubusercontent.com/u/1482649?v=4)](https://github.com/biggianteye "biggianteye (5 commits)")[![brendankay](https://avatars.githubusercontent.com/u/641490?v=4)](https://github.com/brendankay "brendankay (2 commits)")[![RokasDevelopment](https://avatars.githubusercontent.com/u/13278000?v=4)](https://github.com/RokasDevelopment "RokasDevelopment (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/graze-dynamark3-client/health.svg)

```
[![Health](https://phpackages.com/badges/graze-dynamark3-client/health.svg)](https://phpackages.com/packages/graze-dynamark3-client)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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