PHPackages                             maximerenou/pi-chat - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. maximerenou/pi-chat

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

maximerenou/pi-chat
===================

Pi client

0.0.2(2y ago)25495PHPPHP &gt;=7.1

Since May 4Pushed 2y ago1 watchersCompare

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

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

Pi chatbot client
=================

[](#pi-chatbot-client)

[![License](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://opensource.org/licenses/MIT)[![Latest Stable Version](https://camo.githubusercontent.com/bfbb9a50f3be08c71ca8020b01deac808c461f0a7210599c921dcf9b9692dbcf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6d6178696d6572656e6f752f7068702d70692d63686174)](https://packagist.org/packages/maximerenou/pi-chat)[![PHP version](https://camo.githubusercontent.com/cf0500ca049225838273c650304173027011b2da1e1b6639b3d4c3304569b4ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6d6178696d6572656e6f752f70692d636861742f706870)](https://packagist.org/packages/maximerenou/pi-chat)[![cURL extension required](https://camo.githubusercontent.com/63b6bed8b100366d5eb40421afab2d36547bdd821fba7df8fbe296b1c18c23e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6d6178696d6572656e6f752f70692d636861742f6578742d6375726c)](https://packagist.org/packages/maximerenou/pi-chat)

This is an unofficial PHP client for **Pi** chatbot (from **Inflection AI**). It doesn't require authentication.

> This package isn't actively maintained and may be unstable due to Inflection AI's Cloudflare configuration.

> This package is stricly meant for educational purpose. Use at your own risks.

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

[](#installation)

```
composer require maximerenou/pi-chat

```

Demo
----

[](#demo)

Clone this repo, run `composer install` and run `examples/chat.php` to test it.

[![Prompt Demo](examples/demo.gif)](examples/demo.gif)

Usage
-----

[](#usage)

```
use MaximeRenou\PiChat\Client as PiChat;
use MaximeRenou\PiChat\Prompt;

$chatbot = new PiChat();

$conversation = $chatbot->createConversation();

// $answer - full answer
$answer = $conversation->ask(new Prompt("Hello World"));
```

 Real-time / progressive answerYou may pass a function as second argument to get real-time progression:

```
// $current_answer - incomplete answer
// $tokens - last tokens received
$final_answer = $conversation->ask($prompt, function ($current_answer, $tokens) {
    echo $tokens;
});
```

  Resume a conversationIf you want to resume a previous conversation, you can retrieve its identifiers:

```
// Get current identifiers
$identifiers = $conversation->getIdentifiers();

// ...
// Resume conversation with $identifiers parameter
$conversation = $chatbot->resumeConversation($identifiers);
```

  Error handlingThe code throws exceptions when it receives an error from Pi. You can therefore use a try/catch block to handle errors.

---

#### Disclaimer

[](#disclaimer)

This code is for educational purpose only. Using Pi outside pi.ai may violate Inflection AI terms.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity30

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

Every ~322 days

Total

2

Last Release

786d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/80bcf6ed37c089e47d02a7210fefb2ecd4ebc38c05491f72c0ef2a55fb0536f0?d=identicon)[maximerenou](/maintainers/maximerenou)

---

Top Contributors

[![maximerenou](https://avatars.githubusercontent.com/u/4728191?v=4)](https://github.com/maximerenou "maximerenou (3 commits)")

---

Tags

aichatbotinflection-aipi

### Embed Badge

![Health badge](/badges/maximerenou-pi-chat/health.svg)

```
[![Health](https://phpackages.com/badges/maximerenou-pi-chat/health.svg)](https://phpackages.com/packages/maximerenou-pi-chat)
```

###  Alternatives

[hasan-ahani/filament-otp-input

Otp input for filament

2678.1k](/packages/hasan-ahani-filament-otp-input)

PHPackages © 2026

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