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

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

nsone/nsone-php
===============

A PHP SDK for accessing NSONE, the Data Driven DNS platform.

1013.0k↓25%10PHP

Since Mar 14Pushed 3y ago28 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

About
=====

[](#about)

> Please note: **At this time, the `NS1 PHP` package is [DEPRECATED](https://github.com/ns1/community/blob/master/project_status/DEPRECATED.md) and is not feature complete. We suggest using one of our other packages for production integrations.**

This package provides a PHP SDK for accessing the NSONE DNS platform and includes both a simple NSONE REST API wrapper as well as a higher level interface for managing zones, records, data feeds, and more.

It requires PHP 5.3+ and the curl extension.

Getting Started
===============

[](#getting-started)

### Create an API key

[](#create-an-api-key)

You'll need a REST API key. Login to the your account at  (or create a new, free account at ). Click on Account in the top right, then Settings &amp; Users. At the bottom, in the Manage API Keys section, click Add a New Key and set an appropriate name. If you wish, adjust permissions for this key.

### Install nsone-php (Using Composer):

[](#install-nsone-php-using-composer)

We recommend using composer () to manage the nsone-php package. If you don't already have it, first install Composer into your project directory:

```
curl -sS https://getcomposer.org/installer | php
```

Edit (or create) composer.json in your project root to include nsone-php:

```
{
    "require": {
        "nsone/nsone-php": "~0.1"
    }
}
```

Then in your project, make sure you require the composer autoloader:

```
require 'vendor/autoload.php';
```

### Create config file

[](#create-config-file)

For example, nsone.json

```
{
   "default_key": "account1",
   "verbosity": 5,
   "keys": {
        "account1": {
            "key": "qACMD09OJXBxT7XOuRs8",
            "desc": "account number 1"
        },
        "account2": {
            "key": "qACMD09OJXBxT7XOwv9v",
            "desc": "account number 2"
        }
   }
}
```

### Connect

[](#connect)

```
require 'vendor/autoload.php';

use NSONE\Client;
use NSONE\Config;

$config = new Config();
$config->loadFromFile('nsone.json');

$nsone = new Client(array('config' => $config));

$zone = $nsone->createZone('newzone2.com', array('nx_ttl' => 100));
$zone->update(array('nx_ttl' => 200));
print_r($zone->qps());
print_r($zone->usage());
$zone->delete();

$zone = $nsone->loadZone('test.com');
print_r($zone->qps());
```

Contributions
-------------

[](#contributions)

Pull Requests and issues are welcome. See the [NS1 Contribution Guidelines](https://github.com/ns1/community) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76% 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.

### Community

Maintainers

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

---

Top Contributors

[![weyrick](https://avatars.githubusercontent.com/u/195691?v=4)](https://github.com/weyrick "weyrick (19 commits)")[![jfarrell-NS1](https://avatars.githubusercontent.com/u/122284029?v=4)](https://github.com/jfarrell-NS1 "jfarrell-NS1 (2 commits)")[![natedaly](https://avatars.githubusercontent.com/u/8078318?v=4)](https://github.com/natedaly "natedaly (2 commits)")[![Zach-Johnson](https://avatars.githubusercontent.com/u/10472076?v=4)](https://github.com/Zach-Johnson "Zach-Johnson (2 commits)")

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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