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

ActiveLibrary[API Development](/categories/api)

tafhyseni/godaddy-php
=====================

A minimalist Godaddy Api Client for domain purchases and administrations

1.0.2(4y ago)183.2k4MITPHPPHP ^7.2.5|^8.0CI failing

Since Jun 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tafhyseni/godaddy-php)[ Packagist](https://packagist.org/packages/tafhyseni/godaddy-php)[ RSS](/packages/tafhyseni-godaddy-php/feed)WikiDiscussions master Synced today

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

GoDaddy PHP 🐘
=============

[](#godaddy-php-)

A minimalist Godaddy PHP package for most of your operations with GoDaddy API..
[![PHP version](https://camo.githubusercontent.com/5fb2fa35f824e966481730f7ead26db158bc86dc79a57e76dc208ea4b19a00cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746166687973656e692f676f64616464792d7068702e737667)](https://packagist.org/packages/tafhyseni/godaddy-php)[![Build Status](https://camo.githubusercontent.com/cdf74ba97ff3f2b4a4e528c58880178da2a2bbb9a0329569cc69b5b8cefd8747/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f746166687973656e692f676f64616464792d7068702f6d61737465722e737667)](https://travis-ci.org/tafhyseni/godaddy-php)[![Latest Stable Version](https://camo.githubusercontent.com/b2ac5962346c73bb9170bb84e14a2bb87341b9e2888892dac4d36a84ab16fa6e/68747470733a2f2f706f7365722e707567782e6f72672f746166687973656e692f676f64616464792d7068702f76)](//packagist.org/packages/tafhyseni/godaddy-php)[![License](https://camo.githubusercontent.com/7cf0f07a4aec54ad45d1d249120083ba11f51d55cac2f67e9dd968db13fe429e/68747470733a2f2f706f7365722e707567782e6f72672f746166687973656e692f676f64616464792d7068702f6c6963656e7365)](//packagist.org/packages/tafhyseni/godaddy-php)[![StyleCI](https://camo.githubusercontent.com/24bc313e031a6858941c85faecea2860406a6f2eecad896f1af07c01cc7a1ea8/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3236353634323935312f736869656c643f7374796c653d706c6173746963)](https://camo.githubusercontent.com/24bc313e031a6858941c85faecea2860406a6f2eecad896f1af07c01cc7a1ea8/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3236353634323935312f736869656c643f7374796c653d706c6173746963)

### System Requirements

[](#system-requirements)

You need:

- PHP &gt;= 7.2 but the latest stable version of PHP is highly recommended
- the `intl` extension

### Installation

[](#installation)

```
composer require tafhyseni/godaddy-php;
```

### Usage

[](#usage)

Before using GoDaddy PHP make sure you have already created a developer account at [Godaddy Developer Portal](https://developer.godaddy.com/).

> Since this package uses `php-domain-parser` for validations and interactions with domain, make sure you **enable ext-intl** extension in your `php.ini` configuration.

```
use Tafhyseni\PhpGodaddy\Domain;
Domain::initialize('YOUR_API_KEY', 'YOUR_SECRET_KEY', 'PRODUCTION_MODE');
```

### Methods

[](#methods)

#### Check Domain Availability

[](#check-domain-availability)

> Returns domain availability status, price to string, currency and period.

An example checking domain availability is as simple as it follows

```
try {
	$domain = Domain::initialize('YOUR_API_KEY', 'YOUR_SECRET_KEY', 'PRODUCTION_MODE');
	$mydomain = 'testingdomain.com';

	$check = $domain->available($domain);

	if($check->isAvailable())
	{
		// Domain is available
		$domainPrice = $this->priceToString();
	}else{
		// Domain is not available
	}
}
```

Available response properties and methods

Parameter / MethodData typeDescriptionisAvailable()boolReturns domain availability statuspriceToString()stringReturns a response message containing: { price } { currency } / { period } year(s)domainstringRequested domainavailabilityintegerAvailability statuspricefloatDomain pricecurrencystringCurrency in which price is listedperiodintegerDomain availability period#### Multiple Domain Checks

[](#multiple-domain-checks)

> A multiple availability check is covered aswell

```
$domain->availableMultiple([]);
```

#### Domain Suggestion

[](#domain-suggestion)

> Returns a list of suggestions based in the keyword you specify.

```
$domain = Domain::initialize('YOUR_API_KEY', 'YOUR_SECRET_KEY', 'PRODUCTION_MODE');

$keyword = 'mybestdomain';

$suggestion = $domain->suggestion($keyword, 'LIMIT');
```

Request parametersData typeDefaultkeywordstring-limitinteger97Response parametersDescriptionkeywordRequested keywordlimitRequested limitdomainsArray of returned domains#### Domain Purchase

[](#domain-purchase)

> Purchase domain from Godaddy. First, set payment method for your account in Godaddy developer portal.

```
$domainName = 'mypurchasedomain.com';
$domain = Domain::initialize('YOUR_API_KEY', 'YOUR_SECRET_KEY', 'PRODUCTION_MODE');

$options = [
    'name'         => 'John',
    'surname'      => 'Doe',
    'email'        => 'john.doe@example.com',
    'phone'        => '+48.111111111',
    'organization' => 'Corporation Inc.',
    'street'       => 'Street Ave. 666',
    'city'         => 'New York City',
    'country'      => 'US',
    'postalCode'  => '91111',
    'state'        => 'New York'
];

try {
    $purchase = $domain->purchase($domainName, $options)
        ->nameServers([
            'dns.nameserver.com',
            'dns2.nameserver.com'
        ])->submit();
}catch(Exception $e) {
    // Catch Exception
}
```

Request parametersData typeDefaultdomainstring-optionsarray-nameServers()array-period()integer1autorenew()booltrueResponse paramtersData typeDescriptioncurrencystringCurrency in which total is listeditemCountintegerNumber of items included in the orderorderIdintegerUnique identifier of the order processedtotalintegerTotal cost of the domain and any selection addons in micro unit#### Changing DNS Records

[](#changing-dns-records)

```
$domainName = 'testinjoooo.biz'; // An already registered domain name under your account
$domain = Domain::initialize('YOUR_API_KEY', 'YOUR_SECRET_KEY', 'PRODUCTION_MODE');

$domain->records($domainName, 'RECORD_TYPE', [
	['name' => 'Point', 'data' => '123.1.1.1'],
	['name' => 'Point2', 'data' => '123.1.1.3'],
])->set();
```

### Default API Return object

[](#default-api-return-object)

A general API response object is already declared and returns the following properties

propertydata typedescriptionhttpStatusintegerHttp response codehttpHeadersarrayHttp headershttpBodyObjectMethod propertieshttpMessagestringAny available http message### Exceptions

[](#exceptions)

We created custom responses which should be catched from your side. Therefor, using try/catch blocks is **highly recommended**.

Common Exception thrown

CodeNameMessage401noApiKeyProvidedAPI Key has not been provided!401noSecretKeyProvidedSecret Key has not been provided!401authorizationFailedAuthorization failed. Check your secret/api keys.400noDomainProvidedDomain name is required and cannot be empty!422noKeywordProvidedNo keyword has been specified!400invalidDomainPeriodDomain period should be within 1 and 10 range404domainNotAvailableDomain is not available for registration403invalidPaymentInfoInvalid payment information provided at your API account!400invalidRecordTypeRecord type is invalid. Available types are: A, AAA, CNAME, MX, NS, SRV, TXT404recordDomainNotFoundGiven domain has not been found or is not registered

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~298 days

Total

3

Last Release

1619d ago

PHP version history (2 changes)1.0.0PHP ^7.2.5

1.0.2PHP ^7.2.5|^8.0

### Community

Maintainers

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

---

Top Contributors

[![tafhyseni](https://avatars.githubusercontent.com/u/20110604?v=4)](https://github.com/tafhyseni "tafhyseni (50 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M987](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M45](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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