PHPackages                             piteurstudio/php-nicdz - 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. piteurstudio/php-nicdz

ActiveLibrary[API Development](/categories/api)

piteurstudio/php-nicdz
======================

checks availability of .DZ and whois data via the nic.dz API

v1.0.2(1y ago)31721MITPHPPHP ^8.0

Since Oct 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PiteurStudio/php-domain-dz)[ Packagist](https://packagist.org/packages/piteurstudio/php-nicdz)[ Docs](https://github.com/piteurstudio/php-domain-dz)[ RSS](/packages/piteurstudio-php-nicdz/feed)WikiDiscussions main Synced 1mo ago

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

PHP Client for Nic.dz
=====================

[](#php-client-for-nicdz)

[![image](https://private-user-images.githubusercontent.com/1750845/377289549-eec9edd7-19d4-479d-8824-97b1d6ebb123.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUxNzUyMjEsIm5iZiI6MTc3NTE3NDkyMSwicGF0aCI6Ii8xNzUwODQ1LzM3NzI4OTU0OS1lZWM5ZWRkNy0xOWQ0LTQ3OWQtODgyNC05N2IxZDZlYmIxMjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDQwMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA0MDNUMDAwODQxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGZlYmRjMThmNTg3NWNkZTYwN2QxNzBiZmQzZjdlZGI3MTVjZWU1ZWY4OTdhZjBhZDM2MmI1N2EyZTliNmJiZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.drhS1ZbgjwW35rOENF4fyZH2-9N8Q-jnJaiBIsdOtdU)](https://private-user-images.githubusercontent.com/1750845/377289549-eec9edd7-19d4-479d-8824-97b1d6ebb123.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUxNzUyMjEsIm5iZiI6MTc3NTE3NDkyMSwicGF0aCI6Ii8xNzUwODQ1LzM3NzI4OTU0OS1lZWM5ZWRkNy0xOWQ0LTQ3OWQtODgyNC05N2IxZDZlYmIxMjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDQwMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA0MDNUMDAwODQxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGZlYmRjMThmNTg3NWNkZTYwN2QxNzBiZmQzZjdlZGI3MTVjZWU1ZWY4OTdhZjBhZDM2MmI1N2EyZTliNmJiZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.drhS1ZbgjwW35rOENF4fyZH2-9N8Q-jnJaiBIsdOtdU)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9a448a5759c2fb3584364ecb8f76d08600026ea96931b62e981ba015e60b37b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70697465757273747564696f2f7068702d6e6963647a2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/piteurstudio/php-nicdz)[![Tests](https://camo.githubusercontent.com/b95b2fe6f3b56b640df3c83ab10f9c368822ebe4df9b5151c4c0996f1c6edfbb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f50697465757253747564696f2f7068702d646f6d61696e2d647a2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/PiteurStudio/php-domain-dz/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/00cba9a01a41d0e31b14add80229f10e19a1261cf020117503a479bd67f0697d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70697465757273747564696f2f7068702d6e6963647a3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/piteurstudio/php-nicdz)[![wakatime](https://camo.githubusercontent.com/a63be0cadd27b1ded34df50c201df4400f55a33d7a02ad05e6cdb1436a6d5f83/68747470733a2f2f77616b6174696d652e636f6d2f62616467652f6769746875622f50697465757253747564696f2f7068702d646f6d61696e2d647a2e737667)](https://wakatime.com/badge/github/PiteurStudio/php-domain-dz)

**PHP Client for Nic.dz** provides an easy-to-use interface for checking .dz domains through the official [nic.dz Public API](https://api.nic.dz/swagger-ui/index.html).

Effortlessly check domain availability or retrieve detailed WHOIS information for `.dz` domain extensions.

Requirements
------------

[](#requirements)

- PHP 8.0 or higher

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

[](#installation)

Install the package via Composer:

```
composer require piteurstudio/php-nicdz
```

Usage
-----

[](#usage)

### Domain Availability Check

[](#domain-availability-check)

Easily verify if a `.dz` domain is available:

```
use PiteurStudio\NicDz;

include 'vendor/autoload.php';

$domainChecker = new NicDz('example-domain.dz');

$isAvailable = $domainChecker->isAvailable(); // Returns boolean: true if available, false otherwise
```

Note: The package supports valid `.dz` extensions including: `.gov.dz`, `.org.dz`, `.com.dz`, `.net.dz`, `.edu.dz`, `.asso.dz`, `.pol.dz`, `.art.dz`, `.soc.dz`, `.tm.dz` .

### Retrieving WHOIS Information

[](#retrieving-whois-information)

Get detailed WHOIS information in various formats:

```
$domainChecker = new NicDz('piteur-studio.dz');

// As an array
$whoisDataArray = $domainChecker->whois()->toArray();

// As an object
$whoisDataObject = $domainChecker->whois()->toObject();

// As a raw string
$whoisDataString = $domainChecker->whois()->toString();

// As JSON
$whoisDataJson = $domainChecker->whois()->toJson();
```

Testing
-------

[](#testing)

Run the tests with:

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Disclaimer
----------

[](#disclaimer)

This package is not officially affiliated with or endorsed by **nic.dz**. The NIC.dz name, logo, and trademarks are the property of **nic.dz**.

Credits
-------

[](#credits)

- [Piteur Studio](https://github.com/PiteurStudio)
- [All Contributors](../../contributors)

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT License.](LICENSE.md).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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 ~3 days

Total

3

Last Release

574d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a296ccb9da91508036477d715ab4295a2b8fc47a8c0f468733cac6691995d9a?d=identicon)[Nassim](/maintainers/Nassim)

---

Top Contributors

[![n4ss1m](https://avatars.githubusercontent.com/u/1750845?v=4)](https://github.com/n4ss1m "n4ss1m (17 commits)")

---

Tags

algeriadomainhostingphptldswhoisAlgeriaPiteurStudiophp-domain-dznic.dz

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/piteurstudio-php-nicdz/health.svg)

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

###  Alternatives

[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[piteurstudio/satim-php

PHP package to interact with Satim.dz API

321.0k](/packages/piteurstudio-satim-php)[storyblok/php-content-api-client

PHP Client for Storyblok Content API

11136.8k4](/packages/storyblok-php-content-api-client)[storyblok/php-management-api-client

Storyblok PHP Client for Management API

1224.4k1](/packages/storyblok-php-management-api-client)[smnandre/pagespeed-api

PageSpeed Insight PHP Api Client 🚀 Analyse web pages for performances metrics, core web vitals...

1511.5k](/packages/smnandre-pagespeed-api)

PHPackages © 2026

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