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

ActiveLibrary[API Development](/categories/api)

transip/transip-api-php
=======================

TransIP Rest API Library

6.54.2(1mo ago)32273.6k↓13.1%19[3 issues](https://github.com/transip/transip-api-php/issues)5Apache-2.0PHPPHP ^8.0

Since Jun 26Pushed 2mo ago12 watchersCompare

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

READMEChangelog (10)Dependencies (24)Versions (148)Used By (5)

[ ![](https://camo.githubusercontent.com/f4a6ab4507548751f9c11bceccb36ede693307ef8ac19b700fc47d058eae9509/68747470733a2f2f7777772e7472616e7369702e6e6c2f696d672f63702f7472616e7369702d6c6f676f2e737667)](https://transip.eu)RestAPI library for PHP
=======================

[](#restapi-library-for-php)

This library is a complete implementation for communicating with the TransIP RestAPI. It covers all resource calls available in the [TransIP RestAPI Docs](https://api.transip.nl/rest/docs.html) and it allows your project(s) to connect to the TransIP RestAPI easily. Using this library you can order, update and remove products from your TransIP account.

[![Latest Stable Version](https://camo.githubusercontent.com/1a82f21e7d4a7a6e14d94c9ef7b1ef8f05311b804e77682818b2a63149c79bdf/68747470733a2f2f706f7365722e707567782e6f72672f7472616e7369702f7472616e7369702d6170692d7068702f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/transip/transip-api-php)[![Total Downloads](https://camo.githubusercontent.com/028e754ed5be8a2ebafe954f6dbddee72444cd5ae3a7e6f0e3401a97792b4ce0/68747470733a2f2f706f7365722e707567782e6f72672f7472616e7369702f7472616e7369702d6170692d7068702f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/transip/transip-api-php)[![License](https://camo.githubusercontent.com/1dc721d7d72f9c469283cfd6cf0fdb003b7eaef50843721f987def769e230960/68747470733a2f2f706f7365722e707567782e6f72672f7472616e7369702f7472616e7369702d6170692d7068702f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/transip/transip-api-php)

#### Deprecated SOAP API library (v5.x)

[](#deprecated-soap-api-library-v5x)

As of version 6.0 this library is no longer compatible with TransIP SOAP API because the library is now organized around REST. The SOAP API library versions 5.\* are now deprecated and will no longer receive future updates.

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

[](#requirements)

The PHP RestAPI library requires the following in order to work properly:

- PHP 7.2.0 or later.
- [json](https://www.php.net/manual/en/book.json.php) (php extension)
- [openssl](https://www.php.net/manual/en/book.openssl.php) (php extension)

Composer
--------

[](#composer)

You can install the RestAPI library using [Composer](http://getcomposer.org/). Run the following command:

```
composer require transip/transip-api-php
```

To use the library in your code, use Composer's [autoloader](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once('vendor/autoload.php');
```

Getting started
---------------

[](#getting-started)

How to get authenticated:

```
use Transip\Api\Library\TransipAPI;

require_once(__DIR__ . '/vendor/autoload.php');

// Your login name on the TransIP website.
$login = '';

// If the generated token should only be usable by whitelisted IP addresses in your Controlpanel
$generateWhitelistOnlyTokens = true;

// One of your private keys; these can be requested via your Controlpanel
$privateKey = '';

$api = new TransipAPI(
    $login,
    $privateKey,
    $generateWhitelistOnlyTokens
);

// Create a test connection to the api
$response = $api->test()->test();

if ($response === true) {
    echo 'API connection successful!';
}
```

Get all domains
---------------

[](#get-all-domains)

```
$allDomains = $api->domains()->getAll();
```

Update a single DNS record
--------------------------

[](#update-a-single-dns-record)

```
$homeIpAddress = '37.97.254.1';

$dnsEntry = new \Transip\Api\Library\Entity\Domain\DnsEntry();
$dnsEntry->setName('homeip'); // subdomain
$dnsEntry->setExpire(300);
$dnsEntry->setType('A');
$dnsEntry->setContent($homeIpAddress);

$api->domainDns()->updateEntry('example.com', $dnsEntry);
```

For basic examples, please take a look into the `examples/` directory. You can also see all resource calls implemented in our [command line application](https://github.com/transip/tipctl#how-php-resource-calls-are-implemented)

###  Health Score

65

—

FairBetter than 99% of packages

Maintenance84

Actively maintained with recent releases

Popularity48

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor3

3 contributors hold 50%+ of commits

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

Recently: every ~28 days

Total

138

Last Release

55d ago

Major Versions

v5.18.0 → v6.0.02020-02-19

v5.20.0 → v6.0.42020-03-16

v5.22 → v6.1.02020-05-01

v5.23 → v6.3.02020-06-23

v5.x-dev → v6.9.12021-09-09

PHP version history (3 changes)v6.0.0PHP ^7.2.0

v6.6.1PHP ^7.2.0|^8.0

6.54.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![samihsoylu](https://avatars.githubusercontent.com/u/7690781?v=4)](https://github.com/samihsoylu "samihsoylu (135 commits)")[![conFrituur](https://avatars.githubusercontent.com/u/8106368?v=4)](https://github.com/conFrituur "conFrituur (119 commits)")[![xvilo](https://avatars.githubusercontent.com/u/390769?v=4)](https://github.com/xvilo "xvilo (87 commits)")[![dionbosschieter](https://avatars.githubusercontent.com/u/1027768?v=4)](https://github.com/dionbosschieter "dionbosschieter (42 commits)")[![fvanmaldegem](https://avatars.githubusercontent.com/u/1346546?v=4)](https://github.com/fvanmaldegem "fvanmaldegem (34 commits)")[![vblinden](https://avatars.githubusercontent.com/u/1420356?v=4)](https://github.com/vblinden "vblinden (31 commits)")[![roeldijkstra](https://avatars.githubusercontent.com/u/54985654?v=4)](https://github.com/roeldijkstra "roeldijkstra (29 commits)")[![tgooren](https://avatars.githubusercontent.com/u/81308953?v=4)](https://github.com/tgooren "tgooren (22 commits)")[![svenwiltink](https://avatars.githubusercontent.com/u/5948093?v=4)](https://github.com/svenwiltink "svenwiltink (19 commits)")[![phorick](https://avatars.githubusercontent.com/u/55977794?v=4)](https://github.com/phorick "phorick (16 commits)")[![roald-teamblue](https://avatars.githubusercontent.com/u/106533747?v=4)](https://github.com/roald-teamblue "roald-teamblue (15 commits)")[![SnakingSappyGoat](https://avatars.githubusercontent.com/u/119603248?v=4)](https://github.com/SnakingSappyGoat "SnakingSappyGoat (3 commits)")[![kavash](https://avatars.githubusercontent.com/u/708424?v=4)](https://github.com/kavash "kavash (2 commits)")[![transip-abos](https://avatars.githubusercontent.com/u/53087254?v=4)](https://github.com/transip-abos "transip-abos (2 commits)")[![curry684](https://avatars.githubusercontent.com/u/1455673?v=4)](https://github.com/curry684 "curry684 (1 commits)")[![RobinGeuze](https://avatars.githubusercontent.com/u/8234736?v=4)](https://github.com/RobinGeuze "RobinGeuze (1 commits)")[![kwivix](https://avatars.githubusercontent.com/u/1106023?v=4)](https://github.com/kwivix "kwivix (1 commits)")

---

Tags

apiphptransiptransip-api-v6

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/transip-transip-api-php/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[alexacrm/dynamics-webapi-toolkit

Web API toolkit for Microsoft Dynamics 365 and Dynamics CRM

81324.1k1](/packages/alexacrm-dynamics-webapi-toolkit)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)[brd6/notion-sdk-php

Notion SDK for PHP

5918.0k](/packages/brd6-notion-sdk-php)

PHPackages © 2026

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