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

ActiveLibrary[API Development](/categories/api)

carehq/carehq-php
=================

CareHQ API Client for PHP.

0.1.0(5mo ago)0483MITPHPPHP &gt;=5.6.0

Since Mar 18Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/CareHQ/carehq-php)[ Packagist](https://packagist.org/packages/carehq/carehq-php)[ Docs](https://carehq.co.uk/)[ RSS](/packages/carehq-carehq-php/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (5)Dependencies (1)Versions (10)Used By (0)

CareHQ PHP API client
=====================

[](#carehq-php-api-client)

CareHQ API Client for PHP.

Composer installation
---------------------

[](#composer-installation)

You can install the bindings via [Composer](https://getcomposer.org/). Run the following command:

```
composer require CareHQ/carehq-php

```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once('vendor/autoload.php');

```

Manual installation
-------------------

[](#manual-installation)

If you do not wish to use Composer, you can download the [latest release](https://github.com/CareHQ/carehq-php/releases). Then, to use the bindings, include the `init.php` file.

```
require_once('/path/to/carehq-php/init.php');

```

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

[](#requirements)

- PHP 5.6.0+
- [rmccue/requests aka WpOrg\\Requests](https://github.com/WordPress/Requests)

Usage
=====

[](#usage)

```
require_once('vendor/autoload.php');

$api_client = new CareHQ\APIClient(
    'MY_ACCOUNT_ID',
    'MY_API_KEY',
    'MY_API_SECRET'
);

$users = $api_client->request(
    'get',
    'users',
    [
        'attributes' => [
            'first_name',
            'last_name'
        ],
        'filters-q' => 'ant'
    ]
);
```

Changelog
=========

[](#changelog)

- 2025-01-07: Updated to use the new 'CareHQ-Signature-Version 2.0' hashing mechanism (SHA256 with a nonce), and bring more in line with the [Python version](https://github.com/CareHQ/carehq-python).

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance70

Regular maintenance activity

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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 ~174 days

Recently: every ~168 days

Total

9

Last Release

177d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

apicarehq

### Embed Badge

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

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

###  Alternatives

[razorpay/razorpay

Razorpay PHP Client Library

2045.4M60](/packages/razorpay-razorpay)[pubnub/pubnub

This is the official PubNub PHP SDK repository.

1335.4M17](/packages/pubnub-pubnub)[culqi/culqi-php

Cliente Culqi API para PHP

41370.5k1](/packages/culqi-culqi-php)[epayco/epayco-php

Epayco API client for PHP

25201.7k3](/packages/epayco-epayco-php)

PHPackages © 2026

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