PHPackages                             theogibbons/chroma-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. [Database &amp; ORM](/categories/database)
4. /
5. theogibbons/chroma-php

ActiveLibrary[Database &amp; ORM](/categories/database)

theogibbons/chroma-php
======================

A PHP client for ChromaDB v2

2358↓50.8%PHPCI failing

Since May 2Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

ChromaDB PHP Client
===================

[](#chromadb-php-client)

A lightweight PHP client for interacting with ChromaDB v2 APIs.

> Inspired by [CodeWithKyrian/chromadb-php](https://github.com/CodeWithKyrian/chromadb-php), but that project does not support ChromaDB v2.

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

[](#installation)

```
composer require theogibbons/chroma-php
```

Example 1: Check if the server is running
-----------------------------------------

[](#example-1-check-if-the-server-is-running)

```
use TheoGibbons\ChromaPHP\ChromaDBClient;

$chroma = ChromaDBClient::connect();

$heartbeat = $chroma->heartbeat();
print_r($heartbeat);
```

Example 2: Basic Usage ([View full example](/examples/basic_usage.php))
-----------------------------------------------------------------------

[](#example-2-basic-usage-view-full-example)

```
