PHPackages                             hostmyservers/netim-rest\_api - 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. hostmyservers/netim-rest\_api

ActiveLibrary

hostmyservers/netim-rest\_api
=============================

Client REST API pour Netim par HostMyServers

1.02(2mo ago)33.4k—3.6%MITPHPPHP &gt;=8.0CI failing

Since Dec 1Pushed 2mo agoCompare

[ Source](https://github.com/HostMyServers/NetimRestApi)[ Packagist](https://packagist.org/packages/hostmyservers/netim-rest_api)[ RSS](/packages/hostmyservers-netim-rest-api/feed)WikiDiscussions main Synced 1mo ago

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

HostMyServers Netim REST API Client
===================================

[](#hostmyservers-netim-rest-api-client)

A Laravel package to interact with the Netim API for domain management.

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

[](#installation)

You can install the package via composer:

```
composer require hostmyservers/netim-rest-api
```

Configuration
-------------

[](#configuration)

First, publish the configuration file using the following command:

```
php artisan vendor:publish --provider="HostMyServers\NetimRestApi\NetimServiceProvider"
```

This will create a `config/netim.php` file in your project.

Add these variables to your `.env` file:

```
NETIM_LOGIN=your_login
NETIM_SECRET=your_secret
NETIM_LANGUAGE=EN
NETIM_API_URL=https://rest.netim.com/1.0/
```

The published configuration file will automatically use these environment variables.

Basic Usage
-----------

[](#basic-usage)

```
use HostMyServers\NetimRestApi\NetimClient;

// Initialize the client
$netim = new NetimClient();

// Check domain availability
$availability = $netim->domain->checkDomain('example.com');

// Get domain information
$domainInfo = $netim->domain->getDomainInfo('example.com');

// Update DNS servers
$nameservers = [
    'ns1.example.com',
    'ns2.example.com'
];
$dnsUpdate = $netim->domain->updateDNS('example.com', $nameservers);

// Enable WHOIS privacy
$privacy = $netim->domain->setWhoisPrivacy('example.com', true);

// Get list of all domains
$allDomains = $netim->domain->getDomainsList();
```

Error Handling
--------------

[](#error-handling)

The API client throws `NetimException` when errors occur. You should handle these exceptions in your code:

```
use HostMyServers\NetimRestApi\Exceptions\NetimException;

try {
    $domainInfo = $netim->domain->getDomainInfo('example.com');
} catch (NetimException $e) {
    echo "Error: " . $e->getMessage();
    echo "API Error Code: " . $e->getApiErrorCode();
    echo "API Error Data: " . print_r($e->getApiErrorData(), true);
}
```

Session Management
------------------

[](#session-management)

The client automatically handles session creation and cleanup. However, you can manually manage sessions if needed:

```
// Check if session is active
if ($netim->hasActiveSession()) {
    // Do something
}

// Force session renewal
$netim->renewSession();

// Manually close session
$netim->closeSession();
```

Available Methods
-----------------

[](#available-methods)

### Domain Management (DomainService)

[](#domain-management-domainservice)

- `getDomainInfo(string $domain)`: Get domain information
- `checkDomain(string $domain)`: Check domain availability
- `checkDomainClaim(string $domain)`: Check domain claims
- `createDomain(string $domain, array $domainData)`: Register a new domain
- `transferDomain(string $domain, array $transferData)`: Transfer a domain to Netim
- `transferDomainTrade(string $domain, array $transferData)`: Transfer and trade a domain
- `renewDomain(string $domain, int $period)`: Renew a domain
- `updateDNS(string $domain, array $nameservers)`: Update DNS servers
- `setWhoisPrivacy(string $domain, bool $enabled)`: Enable/Disable WHOIS privacy
- `setAutoRenew(string $domain, bool $enabled)`: Enable/Disable auto-renewal
- `getWhois(string $domain)`: Get WHOIS information
- `deleteDomain(string $domain)`: Delete a domain
- `getDomainsList()`: Get list of all domains
- `setDNSSEC(string $domain, int $enabled)`: Configure DNSSEC
- `setDNSSECExt(string $domain, array $dnssecData)`: Configure external DNSSEC
- `setDomainLock(string $domain, string $locked)`: Update domain lock status
- `requestAuthCode(string $domain, int $sendtoregistrant)`: Request authorization code
- `restoreDomain(string $domain)`: Restore an expired domain

### Zones Management (ZonesService)

[](#zones-management-zonesservice)

- `initializeDnsZone(string $domain, array $options)`: Initialize a DNS zone
- `initializeSoaRecord(string $domain, array $options)`: Initialize SOA record
- `createDnsZone(string $domain, array $records)`: Create a DNS zone
- `deleteDnsZone(string $domain, $records)`: Delete a DNS zone
- `getDnsRecordsList(string $domain)`: Get list of DNS records
- `createMailForward(string $domain, string $source, string $destination)`: Create an email forward
- `deleteMailForward(string $domain, string $source)`: Delete an email forward
- `getMailForwardsList(string $domain)`: Get list of email forwards
- `createWebForward(string $domain, string $source, string $destination, array $options)`: Create a web forward
- `deleteWebForward(string $domain, string $source)`: Delete a web forward
- `getWebForwardsList(string $domain)`: Get list of web forwards

### Contact Management (ContactService)

[](#contact-management-contactservice)

- `createContact(array $contactData)`: Create a new contact
- `getContact(string $contactId)`: Get contact information
- `updateContact(string $contactId, array $contactData)`: Update a contact
- `deleteContact(string $contactId)`: Delete a contact
- `getContactList(string $field, string $filter)`: Get filtered list of contacts

### Host Management (HostService)

[](#host-management-hostservice)

- `createHost(string $host, array $ipv4, array $ipv6)`: Create a new host (at least one IP required)
- `getHostsList(string $filter)`: Get list of hosts matching a filter (wildcard `*` supported)
- `updateHost(string $host, array $ipv4, array $ipv6)`: Update a host's IP addresses
- `deleteHost(string $host)`: Delete a host (only if no domain uses it)

### TLD Services (TldService)

[](#tld-services-tldservice)

- `getInfo(string $tld)`: Get TLD information
- `getPriceList()`: Get TLD price list

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance87

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

Total

3

Last Release

63d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10a2b145df6bce5b68f421ee0420a5114d561a45dd0e02f260e9a171b3a759d2?d=identicon)[TitinDev](/maintainers/TitinDev)

---

Top Contributors

[![TitinDev](https://avatars.githubusercontent.com/u/5264917?v=4)](https://github.com/TitinDev "TitinDev (24 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hostmyservers-netim-rest-api/health.svg)

```
[![Health](https://phpackages.com/badges/hostmyservers-netim-rest-api/health.svg)](https://phpackages.com/packages/hostmyservers-netim-rest-api)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[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)
