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

ActiveLibrary[API Development](/categories/api)

enlivy/enlivy-php
=================

Official PHP client library for the Enlivy API

0.0.5(2mo ago)089MITPHPPHP &gt;=8.3

Since Feb 5Pushed 2mo agoCompare

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

READMEChangelog (5)Dependencies (6)Versions (6)Used By (0)

Enlivy PHP SDK
==============

[](#enlivy-php-sdk)

Official PHP client library for the [Enlivy API](https://enlivy.com).

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

[](#requirements)

- PHP 8.3+
- `ext-curl`, `ext-json`, `ext-mbstring`

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

[](#installation)

```
composer require enlivy/enlivy-php
```

Quick Start
-----------

[](#quick-start)

```
$enlivy = new \Enlivy\EnlivyClient([
    'api_key' => '1|your_api_token',
    'organization_id' => 'org_xxx',
]);

// List prospects
$prospects = $enlivy->prospects->list();

foreach ($prospects as $prospect) {
    echo $prospect->title . "\n";
}

// Create
$prospect = $enlivy->prospects->create([
    'title' => 'New Lead',
    'email' => 'lead@example.com',
]);

// Retrieve
$prospect = $enlivy->prospects->retrieve('org_pros_xxx');

// Update
$enlivy->prospects->update('org_pros_xxx', ['title' => 'Updated']);

// Delete
$enlivy->prospects->delete('org_pros_xxx');
```

Configuration
-------------

[](#configuration)

```
$enlivy = new \Enlivy\EnlivyClient([
    'api_key' => '1|your_token',       // Required (or use OAuth)
    'organization_id' => 'org_xxx',    // Default org for requests
    'api_base' => 'https://api.enlivy.com', // Optional
    'timeout' => 30,                   // Optional (seconds)
]);
```

For OAuth authentication, see [examples/oauth.md](examples/oauth.md).

Error Handling
--------------

[](#error-handling)

```
use Enlivy\Exception\{
    ValidationException,
    NotFoundException,
    AuthenticationException,
    RateLimitException,
};

try {
    $prospect = $enlivy->prospects->retrieve('invalid_id');
} catch (ValidationException $e) {
    $errors = $e->errors(); // ['field' => ['error message']]
} catch (NotFoundException $e) {
    // 404 - Resource not found
} catch (AuthenticationException $e) {
    // 401 - Invalid credentials
} catch (RateLimitException $e) {
    $retryAfter = $e->retryAfter(); // seconds
}
```

Pagination
----------

[](#pagination)

```
$prospects = $enlivy->prospects->list(['page' => 1, 'per_page' => 25]);

echo "Page " . $prospects->getCurrentPage() . " of " . $prospects->getTotalPages();

foreach ($prospects as $prospect) {
    echo $prospect->title;
}
```

Examples
--------

[](#examples)

See the [examples/](examples/) folder for detailed usage:

- [Authentication](examples/authentication.md)
- [OAuth](examples/oauth.md)
- [Invoices](examples/organization/invoices.md)
- [Prospects](examples/organization/prospects.md)
- [Contracts](examples/organization/contracts.md)
- [Projects](examples/organization/projects.md)
- [And more...](examples/README.md)

Testing
-------

[](#testing)

```
./vendor/bin/phpunit              # Unit tests
./vendor/bin/phpstan analyse      # Static analysis
```

See [TESTING.md](TESTING.md) for integration tests.

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance88

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~8 days

Total

5

Last Release

62d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d9d5e2269894d2fc6e8a321bd31af8f28ac986247eb68b43a0c715d2a7b3bb1?d=identicon)[enlivy](/maintainers/enlivy)

---

Top Contributors

[![robertuniqid](https://avatars.githubusercontent.com/u/3656623?v=4)](https://github.com/robertuniqid "robertuniqid (12 commits)")

---

Tags

apicontractssdkbusinesscrminvoicingenlivyproposals

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[invoiced/invoiced

Invoiced PHP Library

14117.1k](/packages/invoiced-invoiced)

PHPackages © 2026

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