PHPackages                             gotcreations/namecheap-sdk - 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. gotcreations/namecheap-sdk

ActiveLibrary[API Development](/categories/api)

gotcreations/namecheap-sdk
==========================

SDK library for Namecheap APIs

v1.1.0(5y ago)11.6k21MITPHPPHP &gt;=5.6

Since Apr 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ander7agar/namecheap-sdk)[ Packagist](https://packagist.org/packages/gotcreations/namecheap-sdk)[ RSS](/packages/gotcreations-namecheap-sdk/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (7)Used By (1)

Namecheap SDK for APIs
======================

[](#namecheap-sdk-for-apis)

[![Latest Stable Version](https://camo.githubusercontent.com/6bac9adf9859c53ea7751123ee14d2698738a0166b74cb286b8646195bfa03de/68747470733a2f2f706f7365722e707567782e6f72672f676f746372656174696f6e732f6e616d6563686561702d73646b2f76)](//packagist.org/packages/gotcreations/namecheap-sdk)[![Total Downloads](https://camo.githubusercontent.com/29c89543f94aa2d3a349205fc54a1a337337025b9307f5585648d3579b9f273c/68747470733a2f2f706f7365722e707567782e6f72672f676f746372656174696f6e732f6e616d6563686561702d73646b2f646f776e6c6f616473)](//packagist.org/packages/gotcreations/namecheap-sdk)[![Latest Unstable Version](https://camo.githubusercontent.com/7a7a46c767f4707aaff3dc38cbd9e3bffeafa48efc2f014afb8749e325db9737/68747470733a2f2f706f7365722e707567782e6f72672f676f746372656174696f6e732f6e616d6563686561702d73646b2f762f756e737461626c65)](//packagist.org/packages/gotcreations/namecheap-sdk) [![License](https://camo.githubusercontent.com/980bb6e53e97c55ed64c144e412c9095b4999fd2183e46411d0f5b47b81412d7/68747470733a2f2f706f7365722e707567782e6f72672f676f746372656174696f6e732f6e616d6563686561702d73646b2f6c6963656e7365)](//packagist.org/packages/gotcreations/namecheap-sdk)

Namecheap SDK is a PHP lib that makes it easy to manage Namecheap APIs.

API Methods Examples:
---------------------

[](#api-methods-examples)

### Create a connection to the Namecheap API which you can then pass into other services, e.g. domains, later on

[](#create-a-connection-to-the-namecheap-api-which-you-can-then-pass-into-other-services-eg-domains-later-on)

```
#getDoaminList.php
require_once "vendor/autoload.php";

$apiUser = $userName = 'ncusername';
$apiKey = '****************************';
$clientIp = '198.168.0.123';
// Return type can be: xml (default), array, json
$returnType = 'json';

$client = new Namecheap\Api($apiUser, $apiKey, $userName, $clientIp, $returnType);
$client->setCurlOption(CURLOPT_SSL_VERIFYPEER, false); // For local development env (if needed)

$ncDomains = new  Namecheap\Domain\Domains($client);
$ncDomains->enableSandbox(); // Enable sandbox mode for the current instance

$domainList = $ncDomains->getList();

print_r($domainList);
```

```
$contactsInfo = $ncDomains->getContacts($domainName);
$result = $ncDomains->create($dataArr);
```

#### domains

[](#domains)

```
$ncDomains = new  Namecheap\Domain\Domains($apiUser, $apiKey, $userName, $clientIp, 'json');
$domainList = $ncDomains->getList();
$contactsInfo = $ncDomains->getContacts($domainName);
$result = $ncDomains->create($dataArr);
```

#### domains.dns

[](#domainsdns)

```
$ncDomainsDns = new  Namecheap\Domain\DomainsDns($apiUser, $apiKey, $userName, $clientIp);
$list = $ncDomainsDns->getList('domain', 'com');
$default = $ncDomainsDns->setDefault('domain', 'com');
```

#### domains.ns

[](#domainsns)

```
$ncDomainsNs = new  Namecheap\Domain\DomainsNs($apiUser, $apiKey, $userName, $clientIp);
$list = $ncDomainsNs->create('domain', 'com', 'ns1.domain.com', '192.165.15.103');
```

#### domains.transfer

[](#domainstransfer)

```
$ncDomainsTrns = new  Namecheap\Domain\DomainsTransfer($apiUser, $apiKey, $userName, $clientIp);
$getStatus = $ncDomainsTrns->getStatus($transferID);
```

#### ssl

[](#ssl)

```
$ncSsl = new  Namecheap\Ssl\Ssl($apiUser, $apiKey, $userName, $clientIp);
$result = $ncSsl->create($Years, $Type, $SANStoADD, $PromotionCode);
```

#### users

[](#users)

```
$ncUsers = new  Namecheap\Users\Users($apiUser, $apiKey, $userName, $clientIp);
$pricing = $ncUsers->getPricing('DOMAIN');
$userBal = $ncUsers->getBalances();
# Change password
$result = $ncUsers->changePassword($oldPassword, $newPassword);
# Reset pass
$result = $ncUsers->changePassword($resetCode, $newPassword, true);
```

#### users.address

[](#usersaddress)

```
$ncUsersAddr = new  Namecheap\Users\UsersAddress($apiUser, $apiKey, $userName, $clientIp);
$getStatus = $ncUsersAddr->getInfo($AddressId);
```

#### whoisguard

[](#whoisguard)

```
$ncWhoisguard = new  Namecheap\Whoisguard\Whoisguard($apiUser, $apiKey, $userName, $clientIp);
$result = $ncWhoisguard->getInfo($WhoisguardID, $ForwardedToEmail);
```

Help and docs
-------------

[](#help-and-docs)

Installing
----------

[](#installing)

The recommended way to install Namecheap-sdk is through [Composer](http://getcomposer.org).

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

Next, run the Composer command to install the latest stable version of Namecheap-sdk:

```
php composer.phar require gotcreations/namecheap-sdk
```

After installing, you need to require Composer's autoloader:

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

You can then later update namecheap-sdk using composer:

```
composer.phar update
```

Version Guidance
----------------

[](#version-guidance)

VersionStatusPackagistNamespaceRepoDocsPSR-7PHP Version1.x---`gotcreations/namecheap-sdk``Namecheap`--No&gt;= 5.6

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.5% 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 ~133 days

Recently: every ~142 days

Total

6

Last Release

1907d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ecff8e0f234080e499191d3ddff26c297136885b55348120dda4957eb649ea4?d=identicon)[ander7agar](/maintainers/ander7agar)

---

Top Contributors

[![NaturalBuild](https://avatars.githubusercontent.com/u/26158507?v=4)](https://github.com/NaturalBuild "NaturalBuild (20 commits)")[![ander7agar](https://avatars.githubusercontent.com/u/6875232?v=4)](https://github.com/ander7agar "ander7agar (6 commits)")[![borsuk85](https://avatars.githubusercontent.com/u/14992457?v=4)](https://github.com/borsuk85 "borsuk85 (3 commits)")[![saddamCodeclouds](https://avatars.githubusercontent.com/u/36099264?v=4)](https://github.com/saddamCodeclouds "saddamCodeclouds (1 commits)")[![spyroska](https://avatars.githubusercontent.com/u/6750971?v=4)](https://github.com/spyroska "spyroska (1 commits)")

---

Tags

apinamecheapnamecheap SDKnamecheap php

### Embed Badge

![Health badge](/badges/gotcreations-namecheap-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/gotcreations-namecheap-sdk/health.svg)](https://phpackages.com/packages/gotcreations-namecheap-sdk)
```

###  Alternatives

[naturalbuild/namecheap-sdk

SDK library for Namecheap APIs

1623.6k1](/packages/naturalbuild-namecheap-sdk)[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)[karazieiev/namecheap-php-sdk

Namecheap API

1810.3k](/packages/karazieiev-namecheap-php-sdk)

PHPackages © 2026

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