PHPackages                             mrkriskrisu/netcup-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. [API Development](/categories/api)
4. /
5. mrkriskrisu/netcup-api

ActiveLibrary[API Development](/categories/api)

mrkriskrisu/netcup-api
======================

Library to communicate to the netcup CCP and DNS API

v0.0.6(2y ago)81.0k1MITPHPPHP ^8.0

Since Mar 11Pushed 2y ago3 watchersCompare

[ Source](https://github.com/MrKrisKrisu/netcup-api)[ Packagist](https://packagist.org/packages/mrkriskrisu/netcup-api)[ RSS](/packages/mrkriskrisu-netcup-api/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (5)Dependencies (1)Versions (7)Used By (0)

PHP Library for netcup Domain API
=================================

[](#php-library-for-netcup-domain-api)

[![Codacy Badge](https://camo.githubusercontent.com/ad624854e80f521b51ea0e23f2a9743821f3669586fe70b042b86bda759fba6d/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3565656430396133636639303435313739373464313635323630636433383335)](https://www.codacy.com/gh/MrKrisKrisu/netcup-api/dashboard?utm_source=github.com&utm_medium=referral&utm_content=MrKrisKrisu/netcup-api&utm_campaign=Badge_Grade)

This library is not related to the netcup GmbH, it is provided by a third party.

> ⚠️ **Warning: This library is currently still WIP!** Please use it only if you agree that the following releases contain breaking changes.

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

[](#installation)

You can simply install this library using Composer by running `composer require mrkriskrisu/netcup-api`. You'll need PHP8.

Examples
--------

[](#examples)

### Login to the API

[](#login-to-the-api)

```
$api = new \Netcup\API("apiKey", "apiPassword", "123456");
echo "Login " . ($api->isLoggedIn() ? 'successful! :)' : 'not successful! :c') . PHP_EOL;
```

### Domains

[](#domains)

#### Get domains and DNS-Records

[](#get-domains-and-dns-records)

```
$domain = $api->infoDomain('k118.de');
print_r($domain->getDnsRecords());
```

#### Create new DNS-Record

[](#create-new-dns-record)

```
$domain = $api->infoDomain('k118.de');
$domain->createNewDnsRecord(new DnsRecord(
    hostname: 'www',
    type: 'A',
    destination: '127.0.0.1'
));
```

#### Update existing DNS-Record

[](#update-existing-dns-record)

```
$domain = $api->infoDomain('k118.de');
$record = $domain->getDnsRecords()[0];
$record->update(destination: '127.0.0.2');
```

#### Delete DNS-Record

[](#delete-dns-record)

```
$domain = $api->infoDomain('k118.de');
$record = $domain->getDnsRecords()[0];
$record->delete();
```

### Domain-Handles (Reseller only)

[](#domain-handles-reseller-only)

#### Create and update Handle

[](#create-and-update-handle)

```
$handle = $api->createHandle(
    name: 'Edward Keir',
    street: 'Street of God 1',
    postalCode: '12345',
    city: 'Examplecity',
    countryCode: 'DE',
    telephone: '+49.123456789',
    email: 'example@k118.de'
);

$handle->setCity('Kassel'); //this will directly edit the data at the netcup database as well
```

### Logout

[](#logout)

You can end the created session. This is optional. If you don't, the token will automatically expire after 15 minutes.

```
$logoutResult = $api->logout();
```

Official links
--------------

[](#official-links)

- [netcup Wiki: "DNS API"](https://www.netcup-wiki.de/wiki/DNS_API)
- [netcup Wiki: "CCP API"](https://www.netcup-wiki.de/wiki/CCP_API)
- [netcup Documentation: "API Endpoints"](https://ccp.netcup.net/run/webservice/servers/endpoint.php)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.3% 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 ~231 days

Recently: every ~288 days

Total

6

Last Release

775d ago

PHP version history (2 changes)v0.0.1PHP ^7.3 || ^8.0

v0.0.2PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4103693?v=4)[Kris](/maintainers/MrKrisKrisu)[@MrKrisKrisu](https://github.com/MrKrisKrisu)

---

Top Contributors

[![MrKrisKrisu](https://avatars.githubusercontent.com/u/4103693?v=4)](https://github.com/MrKrisKrisu "MrKrisKrisu (13 commits)")[![MaxBoeh](https://avatars.githubusercontent.com/u/16984589?v=4)](https://github.com/MaxBoeh "MaxBoeh (3 commits)")

---

Tags

dns-apidns-recordnetcup-apinetcup-gmbh

### Embed Badge

![Health badge](/badges/mrkriskrisu-netcup-api/health.svg)

```
[![Health](https://phpackages.com/badges/mrkriskrisu-netcup-api/health.svg)](https://phpackages.com/packages/mrkriskrisu-netcup-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

232.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1772.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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