{"id":21128863,"url":"https://github.com/transip/transip-api-php","last_synced_at":"2026-04-03T12:04:21.074Z","repository":{"id":34980923,"uuid":"185154921","full_name":"transip/transip-api-php","owner":"transip","description":"PHP library for TransIP Rest API","archived":false,"fork":false,"pushed_at":"2025-02-03T10:11:42.000Z","size":1041,"stargazers_count":33,"open_issues_count":3,"forks_count":17,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-28T12:09:09.373Z","etag":null,"topics":["api","php","transip","transip-api-v6"],"latest_commit_sha":null,"homepage":"https://api.transip.nl/rest/docs.html","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/transip.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-06T08:26:48.000Z","updated_at":"2025-02-03T10:11:48.000Z","dependencies_parsed_at":"2023-09-23T02:52:14.085Z","dependency_job_id":"e240dbad-fe22-4986-9e16-8dee6d154b75","html_url":"https://github.com/transip/transip-api-php","commit_stats":{"total_commits":295,"total_committers":23,"mean_commits":"12.826086956521738","dds":0.7254237288135593,"last_synced_commit":"78a94dc84c0c89d4b220666fed6503afc0f07cea"},"previous_names":[],"tags_count":128,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transip%2Ftransip-api-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transip%2Ftransip-api-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transip%2Ftransip-api-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transip%2Ftransip-api-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transip","download_url":"https://codeload.github.com/transip/transip-api-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182401,"owners_count":20897381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","php","transip","transip-api-v6"],"created_at":"2024-11-20T05:10:53.851Z","updated_at":"2026-02-24T12:05:20.912Z","avatar_url":"https://github.com/transip.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://transip.eu\" target=\"_blank\"\u003e\n    \u003cimg width=\"200px\" src=\"https://www.transip.nl/img/cp/transip-logo.svg\"\u003e\n\u003c/a\u003e\n\n# RestAPI library for PHP\n\nThis 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. \n\n[![Latest Stable Version](https://poser.pugx.org/transip/transip-api-php/v/stable?format=flat-square)](https://packagist.org/packages/transip/transip-api-php)\n[![Total Downloads](https://poser.pugx.org/transip/transip-api-php/downloads?format=flat-square)](https://packagist.org/packages/transip/transip-api-php)\n[![License](https://poser.pugx.org/transip/transip-api-php/license?format=flat-square)](https://packagist.org/packages/transip/transip-api-php)\n\n#### Deprecated SOAP API library (v5.x)\nAs 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.\n\n## Requirements\n\nThe PHP RestAPI library requires the following in order to work properly:\n\n* PHP 7.2.0 or later.\n* [json](https://www.php.net/manual/en/book.json.php) (php extension)\n* [openssl](https://www.php.net/manual/en/book.openssl.php) (php extension)\n\n## Composer\nYou can install the RestAPI library using [Composer](http://getcomposer.org/). Run the following command:\n```bash\ncomposer require transip/transip-api-php\n```\nTo use the library in your code, use Composer's [autoloader](https://getcomposer.org/doc/01-basic-usage.md#autoloading):\n```php\nrequire_once('vendor/autoload.php');\n```\n\n## Getting started\nHow to get authenticated:\n```php\nuse Transip\\Api\\Library\\TransipAPI;\n\nrequire_once(__DIR__ . '/vendor/autoload.php');\n\n// Your login name on the TransIP website.\n$login = '';\n\n// If the generated token should only be usable by whitelisted IP addresses in your Controlpanel\n$generateWhitelistOnlyTokens = true;\n\n// One of your private keys; these can be requested via your Controlpanel\n$privateKey = '';\n\n$api = new TransipAPI(\n    $login,\n    $privateKey,\n    $generateWhitelistOnlyTokens\n);\n\n// Create a test connection to the api\n$response = $api-\u003etest()-\u003etest();\n\nif ($response === true) {\n    echo 'API connection successful!';\n}\n```\n\n## Get all domains\n```php\n$allDomains = $api-\u003edomains()-\u003egetAll();\n```\n\n## Update a single DNS record\n```php\n$homeIpAddress = '37.97.254.1'; \n\n$dnsEntry = new \\Transip\\Api\\Library\\Entity\\Domain\\DnsEntry();\n$dnsEntry-\u003esetName('homeip'); // subdomain\n$dnsEntry-\u003esetExpire(300);\n$dnsEntry-\u003esetType('A');\n$dnsEntry-\u003esetContent($homeIpAddress);\n\n$api-\u003edomainDns()-\u003eupdateEntry('example.com', $dnsEntry);\n```\n\nFor 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)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransip%2Ftransip-api-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftransip%2Ftransip-api-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransip%2Ftransip-api-php/lists"}