PHPackages                             wishborn/alt-php-cognee-sdk - 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. wishborn/alt-php-cognee-sdk

ActiveLibrary[API Development](/categories/api)

wishborn/alt-php-cognee-sdk
===========================

PHP SDK for Cognee - AI Memory Platform (Cognee v0.5.1+ compatible)

v0.1.0(3mo ago)061MITPHPPHP ^8.2

Since Jan 16Pushed 3mo agoCompare

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

READMEChangelogDependencies (4)Versions (2)Used By (1)

Alt PHP Cognee SDK
==================

[](#alt-php-cognee-sdk)

[![Latest Version on Packagist](https://camo.githubusercontent.com/420f58d1d66c12e2595b08fb4e603f582193c87e2c45759821fa9e7b5cf516b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77697368626f726e2f616c742d7068702d636f676e65652d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wishborn/alt-php-cognee-sdk)[![License](https://camo.githubusercontent.com/a6cd630e2786c8cd8bda2691ce01ac9b710a8a492ce474b3ef23d93c384389a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f77697368626f726e2f616c742d7068702d636f676e65652d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wishborn/alt-php-cognee-sdk)

A PHP SDK for [Cognee](https://github.com/topoteretes/cognee) - the AI Memory Platform. This package is compatible with **Cognee v0.5.1+**.

> **Note:** This is an independently maintained alternative to [mikewolfxyou/php-cognee-sdk](https://github.com/mikewolfxyou/php-cognee-sdk), updated for Cognee v0.5.1 API compatibility. Once the upstream package is updated, we recommend switching back to it.

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

[](#requirements)

- PHP 8.2 or higher
- A running Cognee instance (v0.5.1+)

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

[](#installation)

```
composer require wishborn/alt-php-cognee-sdk
```

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

[](#quick-start)

```
use Cognee\Client;
use Cognee\Config;
use Cognee\Requests\SearchRequest;
use Cognee\Enums\SearchType;

// Create a client
$config = new Config(
    baseUrl: 'http://localhost:8000',
    apiKey: 'your-api-key',
);

$client = new Client($config);

// Check health
$health = $client->health()->check();

// Create a dataset
$dataset = $client->datasets()->create('my-dataset');

// Search the knowledge graph
$results = $client->search()->search(new SearchRequest(
    query: 'your search query',
    searchType: SearchType::CHUNKS,
));
```

Available Search Types
----------------------

[](#available-search-types)

The SDK supports all Cognee v0.5.1 search types:

- `SearchType::SUMMARIES`
- `SearchType::CHUNKS` (default)
- `SearchType::CHUNKS_LEXICAL`
- `SearchType::RAG_COMPLETION`
- `SearchType::TRIPLET_COMPLETION`
- `SearchType::GRAPH_COMPLETION`
- `SearchType::GRAPH_SUMMARY_COMPLETION`
- `SearchType::CYPHER`
- `SearchType::NATURAL_LANGUAGE`
- `SearchType::GRAPH_COMPLETION_COT`
- `SearchType::GRAPH_COMPLETION_CONTEXT_EXTENSION`
- `SearchType::FEELING_LUCKY`
- `SearchType::FEEDBACK`
- `SearchType::TEMPORAL`
- `SearchType::CODING_RULES`

Available Resources
-------------------

[](#available-resources)

### Datasets

[](#datasets)

```
$client->datasets()->create($name, $metadata);  // Create dataset
$client->datasets()->list();                     // List all datasets
$client->datasets()->get($id);                   // Get specific dataset
$client->datasets()->delete($id);                // Delete dataset
$client->datasets()->add($request);              // Add data to dataset
$client->datasets()->cognify($request);          // Process into knowledge graph
$client->datasets()->getGraph($id);              // Get dataset graph
$client->datasets()->getStatus($id);             // Get processing status
```

### Search

[](#search)

```
$client->search()->search($request);  // Search knowledge graph
$client->search()->history();         // Get search history
```

### Health

[](#health)

```
$client->health()->check();     // Basic health check
$client->health()->detailed();  // Detailed health check
```

### Auth &amp; Permissions

[](#auth--permissions)

```
$client->auth()->login($email, $password);
$client->permissions()->list();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

### v0.1.0

[](#v010)

- Initial release with Cognee v0.5.1 API compatibility
- Updated SearchType enum with all supported values
- Default search type set to CHUNKS

Credits
-------

[](#credits)

- Based on [mikewolfxyou/php-cognee-sdk](https://github.com/mikewolfxyou/php-cognee-sdk)
- Maintained by [Wishborn](https://github.com/wishborn)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance84

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

113d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3af1e64dc359664cd7a3cc9f6f4030ec8bce17d587eff9f41a7ca84cfda2285a?d=identicon)[wishborn](/maintainers/wishborn)

---

Top Contributors

[![wishborn](https://avatars.githubusercontent.com/u/461446?v=4)](https://github.com/wishborn "wishborn (1 commits)")

---

Tags

sdkaimemoryllmragknowledge-graphcognee

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/wishborn-alt-php-cognee-sdk/health.svg)

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

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[claude-php/claude-php-sdk-laravel

Laravel integration for the Claude PHP SDK - Anthropic Claude API

5010.8k](/packages/claude-php-claude-php-sdk-laravel)[vectorifyai/vectorify-laravel

Vectorify package for Laravel. The fastest way to ask AI about your data.

206.1k](/packages/vectorifyai-vectorify-laravel)

PHPackages © 2026

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