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

ActiveLibrary[API Development](/categories/api)

naturalbuild/namecheap-sdk
==========================

SDK library for Namecheap APIs

v1.0.4(5y ago)1623.6k—0%19[2 PRs](https://github.com/NaturalBuild/namecheap-sdk/pulls)MITPHPPHP &gt;=5.6

Since Apr 28Pushed 2y agoCompare

[ Source](https://github.com/NaturalBuild/namecheap-sdk)[ Packagist](https://packagist.org/packages/naturalbuild/namecheap-sdk)[ RSS](/packages/naturalbuild-namecheap-sdk/feed)WikiDiscussions master Synced today

READMEChangelog (5)DependenciesVersions (7)Used By (0)

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

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

![Latest Version](https://camo.githubusercontent.com/cc3c4c13c29343b7038e0635bbae33f0fdd010b5d4edeb79c49bae952d4caa5c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c656173652d76312e302d626c75652e737667)![Build Status](https://camo.githubusercontent.com/36db3cc2c780a366939d5217da16dfd614a92d33cf765edf878757bf1cfca49c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d6572726f722d6c69676874677265792e737667)![Total Downloads](https://camo.githubusercontent.com/7411dd377fb35bedabb937b7d6cbc7875951564c49eedefeb09a08d21095a3e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f776e6c6f6164732d316b2d677265656e2e737667)

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 saddamrhossain/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---`saddamrhossain/namecheap-sdk``Namecheap`--No&gt;= 5.6

###  Health Score

36

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~116 days

Total

5

Last Release

2054d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ebaecd9f27d8b195780ba48d25f0bbcfddc3b45101d435651ed97c8db56e155?d=identicon)[NaturalBuild](/maintainers/NaturalBuild)

---

Top Contributors

[![NaturalBuild](https://avatars.githubusercontent.com/u/26158507?v=4)](https://github.com/NaturalBuild "NaturalBuild (20 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/naturalbuild-namecheap-sdk/health.svg)

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

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22778.7k](/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)
