PHPackages                             covie/sdk-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. covie/sdk-php

ActiveLibrary[API Development](/categories/api)

covie/sdk-php
=============

PHP SDK to work with Covie's API

0.2(4y ago)18MITPHPPHP ^7.4

Since Mar 17Pushed 4y ago3 watchersCompare

[ Source](https://github.com/covie-io/sdk-php)[ Packagist](https://packagist.org/packages/covie/sdk-php)[ Docs](https://github.com/covie/sdk-php)[ RSS](/packages/covie-sdk-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Covie PHP SDK
=============

[](#covie-php-sdk)

PHP SDK to work with Covie's API

**NOTE: This is pre-release software and is subject to change as we develop it.**

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

[](#installation)

We recommend that you use [Composer](https://getcomposer.org/) to bring the Covie PHP SDK into your project.

```
$ composer require covie/sdk-php
```

Quickstart
----------

[](#quickstart)

Firstly, create a client using your own `client-id` and `client-secret`:

```
use Covie\SDK\Client;
$client = Client::createFromCredentials('client-id', 'client-secret');
```

Now that you have a client, you can interact with Covie.

#### Create an Integration

[](#create-an-integration)

To create a new integration named `test`:

```
$integration = $sdk->integrations()->create('test');
```

You can then access the new integration's key using:

```
$key = $integration->getIntegrationKey();
```

The key can then be used with the SDK and other integration level API calls.

#### Retrieve Policy Data

[](#retrieve-policy-data)

To retrieve a policy, you need to know its ID which is of the form `po_xxxxxxxxxxxxxxxx` and can then use:

```
$policy = $sdk->policies()->get($policyId);
```

Now that we have a policy, we can obtain the policy data in JSON format:

```
echo json_encode($policy->jsonSerialize(), JSON_PRETTY_PRINT) . PHP_EOL;
```

We can also retrieve its documents. For example to retrieve the declaration PDF and write to disk:

```
use Covie\SDK\Model\DocumentType;
$pdfContent = $sdk->policies()->getLatestDocumentOfType($policy, DocumentType::DECLARATION);
file_put_contents('declaration.pdf', $pdfContent);
```

The available types are listed in the [DocumentType](src/Model/DocumentType.php) class.

Contributions
-------------

[](#contributions)

We are not accepting contributions to the Covie PHP SDK at this time.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.6% 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 ~1 days

Total

2

Last Release

1521d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33135?v=4)[Rob Allen](/maintainers/akrabat)[@akrabat](https://github.com/akrabat)

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

---

Top Contributors

[![tiffany-taylor](https://avatars.githubusercontent.com/u/3333510?v=4)](https://github.com/tiffany-taylor "tiffany-taylor (17 commits)")[![akrabat](https://avatars.githubusercontent.com/u/33135?v=4)](https://github.com/akrabat "akrabat (8 commits)")[![iansltx](https://avatars.githubusercontent.com/u/472804?v=4)](https://github.com/iansltx "iansltx (4 commits)")

---

Tags

apicovie

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/covie-sdk-php/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

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