PHPackages                             xolphin/xolphin-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. xolphin/xolphin-api-php

ActiveLibrary[API Development](/categories/api)

xolphin/xolphin-api-php
=======================

Xolphin API module for PHP

v3.0.5(2y ago)893.8k↓29.2%17[4 PRs](https://github.com/xolphin/xolphin-api-php/pulls)MITPHPPHP &gt;=7.4|8.0

Since May 30Pushed 1y ago3 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (19)Used By (0)

Xolphin API wrapper for PHP
===========================

[](#xolphin-api-wrapper-for-php)

xolphin-php-api is a library which allows quick integration of the [Xolphin REST API](https://api.xolphin.com) in PHP to automated ordering, issuance and installation of SSL Certificates.

About Xolphin
-------------

[](#about-xolphin)

[Xolphin](https://www.xolphin.nl/) is the largest supplier of [SSL Certificates](https://www.sslcertificaten.nl)and [Digital Signatures](https://www.digitalehandtekeningen.nl) in the Netherlands. Xolphin has a professional team providing reliable support and rapid issuance of SSL Certificates at an affordable price from industry leading brands such as Sectigo, GeoTrust, GlobalSign, Thawte and Symantec.

Library installation
--------------------

[](#library-installation)

Library can be installed via [Composer](https://getcomposer.org/)

```
composer require xolphin/xolphin-api-php

```

And updated via

```
composer update xolphin/xolphin-api-php

```

### Upgrade guide: from v2.x to v3.x

[](#upgrade-guide-from-v2x-to-v3x)

- Access pagination attributes from `$response->getPagination()->{{method}};`
- Remove all EE (EncryptionEverywhere) blocks from your code, it has finally been removed.
- Make sure you enforce the right types since we enforce strict-typing now.

### Upgrade guide from v1.8.3 to v2.x

[](#upgrade-guide-from-v183-to-v2x)

Update your `xolphin/xolphin-api-php` dependency to `^2.0` in your `composer.json` file.

#### Renamed classes

[](#renamed-classes)

All endpoint classes have been renamed to a more generic name `Endpoint`. You should update your usages.

#### Calling Endpoint classes

[](#calling-endpoint-classes)

All endpoint classes are started during startup They can be called using `$client->certificates->all()` instead of `$client->certificate()->all()`.

#### Using Helpers instead of strings

[](#using-helpers-instead-of-strings)

In version 2.0.0 we introduced Helper classes. These classes contain constants of all static string variables (enums). Use these constants instead of a string, because we will alter these constants whenever we change the corresponding value in the API.

For instance, when creating a DCV for a domain:

```
$dcvDomain = new Xolphin\Requests\DCVDomain('someDomain', Xolphin\Helpers\DCVTypes::EMAIL_VALIDATION, 'someemail@address.com');
```

#### Certificate download() method returns string

[](#certificate-download-method-returns-string)

The method `download()` on the class `CertificatesEndpoint` now returns the certificate string instead of the `GuzzlestreamInterface`.

Usage
-----

[](#usage)

### Client initialization

[](#client-initialization)

```
