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

ActiveLibrary

ouchestech/namecheap-sdk
========================

SDK library for Namecheap APIs

00PHP

Since Sep 25Pushed 2y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60.6% 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/698a7c851f1b4ee1465cb83253665d4a651db1d2a675a77c6384c7df773c916a?d=identicon)[ouchestechnology](/maintainers/ouchestechnology)

---

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)")[![hambolu](https://avatars.githubusercontent.com/u/36384023?v=4)](https://github.com/hambolu "hambolu (2 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)")

### Embed Badge

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

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

PHPackages © 2026

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