Download the PHP package filippo-toso/pi without Composer
On this page you can find all versions of the php package filippo-toso/pi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download filippo-toso/pi
More information about filippo-toso/pi
Files in filippo-toso/pi
Download filippo-toso/pi
More information about filippo-toso/pi
Files in filippo-toso/pi
Vendor filippo-toso
Package pi
Short Description Laravel package for running pi.dev coding agents via RPC
License MIT
Package pi
Short Description Laravel package for running pi.dev coding agents via RPC
License MIT
Please rate this library. Is it a good library?
Informations about the package pi
Pi Laravel
A Laravel package for running pi coding agents via RPC. Spawn headless pi agent subprocesses from your Laravel app, send prompts, stream responses, execute tools, and manage sessions — all through a clean PHP API.
Requirements
- PHP 8.2+
- Laravel 11 or 12
piCLI installed and accessible from$PATH(or configure a custom binary path)
Installation
Publish the config file:
Configuration
Set these in your .env:
Or edit config/pi.php directly.
Quick Start
Simple Ask (Blocking)
Streaming Responses
Streaming with Callbacks
Custom Agent Options
API Reference
Creating Agents
Prompting
Streaming Events
Model Management
Thinking Level
Bash Execution
Session Management
Compaction
Retry
Queue Modes
Commands
Extension UI Protocol
Low-Level Access
Lifecycle
Event Types
Events received during streaming:
| Event | Description |
|---|---|
agent_start |
Agent begins processing |
agent_end |
Agent completes (includes all generated messages) |
turn_start |
New turn begins |
turn_end |
Turn completes |
message_start |
Message begins |
message_update |
Streaming delta (text/thinking/tool call) |
message_end |
Message completes |
tool_execution_start |
Tool begins |
tool_execution_update |
Tool progress |
tool_execution_end |
Tool completes |
queue_update |
Pending queue changed |
compaction_start |
Compaction begins |
compaction_end |
Compaction completes |
auto_retry_start |
Retry begins |
auto_retry_end |
Retry completes |
extension_error |
Extension error |
extension_ui_request |
Extension UI interaction needed |
RpcEvent Helpers
Error Handling
License
MIT
All versions of pi with dependencies
PHP Build Version
Package Version
The package filippo-toso/pi contains the following files
Loading the files please wait ...