PHPackages                             snider/php-cloud-dns - 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. [API Development](/categories/api)
4. /
5. snider/php-cloud-dns

AbandonedArchivedLibrary[API Development](/categories/api)

snider/php-cloud-dns
====================

A PHP Binding to the Rackspace Cloud DNS API Created for my own use, since no public php API lib was out at that time available.

1.0.0(10y ago)161710[4 issues](https://github.com/snider/php-cloudDNS/issues)GPL-3.0PHP

Since Aug 8Pushed 10y ago4 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

== Project Spring Clean ==

It is time for this lirary to get updated so it is a little more modern, when it was made things were just done diffrently. If you have a idea, im open to impliment it... if you look at my history of acepting pull requests i have a 100% aceptance rate so please dont fork and run with this on your own... if you want i will just add you as a developer once you have done a few pull requests.

during project Spring Clean i want to use getters for listing records, namespace the project, add a PSR-3 style logger, adopt PSR-1/PSR-2 and debating with myself if a trait would be handy... not sure tho its not like a file storage system, any thoughts?

Rackspace DNS PHP API ...

please register any issues to:

Copyright (C) 2011 Paul Lashbrook

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see .

@author Paul Lashbrook

@contributor Alon Ben David @ CoolGeex.com @contributor zeut @ GitHub - reported a fix for limiting... totally forgot that bit! @contributor idfbobby @ github - updated the create\_domain() function to include comments and ttl @contributor diegoiglesias @ github - updated authentication code to cater for new style accounts.

CHANGES

27/3/2012 Reported by Zeut

- fixed a ssl peer veify error for people with old versions of curl

26/3/2012 Reported by Zeut, fixed by Paul Lashbrook

- Updated php Docs
- Added pagination list\_domains() list\_subdomains() list\_records() list\_domain\_search() list\_domain\_details()
- search\_domains alias added

08/09/2011 Paul Lashbrook

- added import\_domain()
- added alias function delete\_domain()
- relaxed data type checking
- fixed callback waiting until timeout

30/08/2011 Alon Ben David @ CoolGeex.com

- Class name now rackDNS
- callback function to cycle through registered call backs with timeout in place
- Added support to US rackspace DNS API
- delete\_domain Now called delete\_domains (accept int for one domain OR array for multiple domains)
- added modify\_domain function to modify domain configuration
- added domain\_import function to import BIND9 format string
- created a sample.php file with code samples

PHP API binding to Rackspace Cloud DNS (US &amp; UK)
----------------------------------------------------

[](#php-api-binding-to-rackspace-cloud-dns-us--uk)

This is strictly for PHP5 since PHP4 should be forgotten forever.

PLEASE NOTE: any help suggestions/requests welcome

Server communication code originally from and slightly adapted, thanks to the work of that author making this was relatively easy

you made get errors trying to establish an ssl conection to rackspace, if you get this you have a old version of Curl installed meaning the CA list is outdated.

just run $dns-&gt;set\_cabundle(true); before you try to do a API action

@link via

All API Methods Implemented So Far: Check sample.php for code sample

$dns = new rackDNS($rs\_user,$rs\_api\_key); //($user, $key, $endpoint = 'UK') $endpoint can be UK or US

// Show all domains avalible $dns-&gt;list\_domains(50,0); //($limit = 10, $offset = 0)

$dns-&gt;list\_subdomains($sampleID);//($domainID)

$dns-&gt;domain\_export($sampleID);//($domainID)

$dns-&gt;list\_records($sampleID);//($domainID)

$dns-&gt;list\_record\_details($sampleID,$recID);//($domainID,$recordID)

$dns-&gt;domain\_import($sampleImport);

$dns-&gt;list\_domain\_search('domain.com');

$dns-&gt;modify\_domain($sampleID,''); //($domainID = false , $email = false , $ttl = 86400 , $comment = 'Modify Domain Using rackDNS API')

$dns-&gt;delete\_domains($sampleID);

$dns-&gt;delete\_domain\_record($domainID,$recordID)

$dns-&gt;list\_domain\_details($domainID = false, $showRecords = false, $showSubdomains = false);

$dns-&gt;import\_domain('domain.com');

$dns-&gt;create\_domain($name = false, $email = false, $records = array());

$dns-&gt;create\_domain\_record($domainID = false, $records = array());

$dns-&gt;create\_domain\_record\_helper($type = false, $name = false, $data = false, $ttl = 86400, $priority = false);

example use:

$dns = new rackDNS(RS\_USER,RS\_API\_KEY);

// make a new dns zone $records = array($dns-&gt;create\_domain\_record\_helper('MX','originalwebware.com','mail.originalwebware.com',86400,2), $dns-&gt;create\_domain\_record\_helper('a','originalwebware.com','192.168.0.1',86400)); name, email, comment, ttl, records $results = $dns-&gt;create\_domain('originalwebware.com', '', 'a comment', 3600, $records);

// add a new record(s) to a dns zone $records = array($dns-&gt;create\_domain\_record\_helper('MX','originalwebware.co.uk','mail.originalwebware.co.uk',86400,2), $dns-&gt;create\_domain\_record\_helper('a','originalwebware.co.uk','192.168.0.1',86400)); $results = $dns-&gt;create\_domain\_record(123456,$records);

$dns-&gt;getLastResponseStatus(); //returns status code $dns-&gt;getLastResponseMessage();//returns status message

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

Unknown

Total

1

Last Release

3937d ago

### Community

Maintainers

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

---

Top Contributors

[![Snider](https://avatars.githubusercontent.com/u/631881?v=4)](https://github.com/Snider "Snider (12 commits)")[![alonbendavid](https://avatars.githubusercontent.com/u/111858?v=4)](https://github.com/alonbendavid "alonbendavid (3 commits)")[![alexshepherd-hydrant](https://avatars.githubusercontent.com/u/13217583?v=4)](https://github.com/alexshepherd-hydrant "alexshepherd-hydrant (1 commits)")[![diegoiglesias](https://avatars.githubusercontent.com/u/8232819?v=4)](https://github.com/diegoiglesias "diegoiglesias (1 commits)")[![dotcomfy](https://avatars.githubusercontent.com/u/532525?v=4)](https://github.com/dotcomfy "dotcomfy (1 commits)")[![marklocker](https://avatars.githubusercontent.com/u/2170244?v=4)](https://github.com/marklocker "marklocker (1 commits)")

---

Tags

cloudrackspacecloud dns

### Embed Badge

![Health badge](/badges/snider-php-cloud-dns/health.svg)

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

###  Alternatives

[rackspace/php-opencloud

PHP SDK for Rackspace/OpenStack APIs

4495.9M38](/packages/rackspace-php-opencloud)[alibabacloud/client

Alibaba Cloud Client for PHP - Use Alibaba Cloud in your PHP project

2223.5M367](/packages/alibabacloud-client)[adobe-marketing-cloud/marketing-cloud-php-sdk

An Object Oriented wrapper for the Adobe Marketing Cloud APIs

37268.6k1](/packages/adobe-marketing-cloud-marketing-cloud-php-sdk)[jordikroon/google-vision

Google Vision Api for PHP (https://cloud.google.com/vision/)

6374.9k1](/packages/jordikroon-google-vision)[opencoconut/coconut

Coconut is a Cloud Video Encoding Service built for developers

17482.5k2](/packages/opencoconut-coconut)[rustici-software/scormcloud-api-v2-client-php

20253.2k](/packages/rustici-software-scormcloud-api-v2-client-php)

PHPackages © 2026

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