PHPackages                             kowap/namecheap-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kowap/namecheap-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kowap/namecheap-php
===================

v1.0.0(5mo ago)0152↓25%PHPPHP ^8.1

Since Nov 30Pushed 5mo agoCompare

[ Source](https://github.com/kowap/namecheap-php)[ Packagist](https://packagist.org/packages/kowap/namecheap-php)[ RSS](/packages/kowap-namecheap-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Namecheap PHP SDK
=================

[](#namecheap-php-sdk)

A modern, clean, PSR-4 compatible PHP SDK for working with the Namecheap API.
Supports production and sandbox environments, domain operations, bulk checks, pricing with caching, DTO-based responses, and balance retrieval.

This SDK is designed to be simple, predictable, and developer-friendly.

---

Features
--------

[](#features)

- Fully PSR-4 structured
- Production and Sandbox API modes
- Get account balance
- Get list of owned domains (with pagination)
- Check domain availability
- Get domain registration prices
- Bulk domain availability checks
- Bulk domain checks with pricing
- Pricing cache (24h)
- DTO-based responses

---

Installation
------------

[](#installation)

Install via Composer:

```
composer require kowap/namecheap-php
```

Usage Example
-------------

[](#usage-example)

### Initialize the client

[](#initialize-the-client)

```
use kowap\Namecheap\NamecheapClient;

$client = new NamecheapClient(
    apiUser:  'YOUR_API_USER',
    apiKey:   'YOUR_API_KEY',
    username: 'YOUR_USERNAME',
    clientIp: 'YOUR_IP',
    sandbox:  false
);
```

### Get Account Balance

[](#get-account-balance)

```
$balance = $client->users()->getBalance();

echo $balance->availableBalance;
echo $balance->currency;
```

### Get Domains List

[](#get-domains-list)

```
$list = $client->domains()->getList([
    'Page'     => 1,
    'PageSize' => 100,
]);

foreach ($list->items as $item) {
    echo $item->domain . PHP_EOL;
}
```

### DomainListResult DTO

[](#domainlistresult-dto)

```
DomainListResult {
    items: DomainListItem[]
    total: 53
    page: 1
    pageSize: 100
}
```

### Check Domain Availability

[](#check-domain-availability)

```
$result = $client->domains()->checkWithPrice('example.com');

echo $result->domain;
echo $result->available;
echo $result->price;
```

### DomainCheckResult DTO

[](#domaincheckresult-dto)

```
DomainCheckResult {
    domain: "example.com"
    available: true
    premium: false
    price: 11.28
    currency: "USD"
}
```

### Bulk Domain Check

[](#bulk-domain-check)

```
$domains = [
    'mytestdomain123.com',
    'supertest987.net',
    'helloexample.org'
];

$results = $client->domains()->checkManyWithPrice($domains);

foreach ($results as $r) {
    echo $r->domain . ' → ' . ($r->available ? 'Available' : 'Taken') . PHP_EOL;
}
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance70

Regular maintenance activity

Popularity13

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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

169d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/kowap-namecheap-php/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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