PHPackages                             tiggee/constellix-v4-client - 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. tiggee/constellix-v4-client

ArchivedLibrary[API Development](/categories/api)

tiggee/constellix-v4-client
===========================

PHP SDK for the Constellix API

v1.0.0(2y ago)21412MITPHPPHP ^8.0||^8.1||^8.2||^8.3CI passing

Since Oct 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/digicert/dnstrust-constellix-php-sdk)[ Packagist](https://packagist.org/packages/tiggee/constellix-v4-client)[ RSS](/packages/tiggee-constellix-v4-client/feed)WikiDiscussions develop Synced yesterday

READMEChangelog (1)Dependencies (14)Versions (3)Used By (0)

DigiCert Constellix DNS API PHP Client Library
==============================================

[](#digicert-constellix-dns-api-php-client-library)

This is an API client library for the [Constellix](https://www.constellix.com) API.

More information about the API may be found in the official API documentation.

- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)
- [License](#license)

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

[](#installation)

### Standalone

[](#standalone)

The easiest way to install and use this client library is using Composer. The following command will add the library to your application and install it from Packagist.

```
composer require tiggee/constellix-v4-client
```

You will also need a [PSR-18 HTTP Client](https://www.php-fig.org/psr/psr-18/) implementation. We recommend Guzzle, you you can use any compatible client.

```
composer require guzzlehttp/guzzle
```

### Laravel

[](#laravel)

If you are using this package inside Laravel, then there is a Laravel-specific package you can include instead. This will add a service provider and use Laravel's own pagination methods. You can include this using:

```
composer require tiggee/constellix-v4-client-laravel
```

For more details, please see the [documentation for that package](https://github.com/Constellix/constellix-php-sdk-laravel).

Getting Started
---------------

[](#getting-started)

You will need a DigiCert Constellix DNS account to manage DNS records. You can sign up for one on the [DigiCert Constellix DNS](https://constellix.com) site.

If you are using Composer, you should be using Composer's autoload to load libraries:

```
require_once 'vendor/_autoload.php';
```

With the libraries loaded, you just need to create the client and set the API key and secret key.

```
$httpClient = new \GuzzleHttp\Client();

$client = new \Constellix\Client\Client($httpClient);
$client->setApiKey(API_KEY);
$client->setSecretKey(SECRET_KEY);
```

You may now use the client to query the API retrieve objects. Usage is documented in GitHub in the docs directory.

### Putting it all together

[](#putting-it-all-together)

Putting this together, it's time for the API equivalent of Hello World. Let's get a list of your domains.

```
