Download the PHP package papi-ai/papi-core without Composer
On this page you can find all versions of the php package papi-ai/papi-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download papi-ai/papi-core
More information about papi-ai/papi-core
Files in papi-ai/papi-core
Download papi-ai/papi-core
More information about papi-ai/papi-core
Files in papi-ai/papi-core
Vendor papi-ai
Package papi-core
Short Description Core classes for PapiAI - A simple but powerful PHP library for building AI agents
License MIT
Package papi-core
Short Description Core classes for PapiAI - A simple but powerful PHP library for building AI agents
License MIT
Please rate this library. Is it a good library?
Informations about the package papi-core
PapiAI Core
A simple but powerful PHP library for building AI agents. Framework-agnostic, type-safe, and designed for real-world applications.
Features
- Framework-agnostic - Works standalone, with Laravel, Symfony, or any PHP project
- Multi-provider - Supports Anthropic Claude, Google Gemini, and more
- Tool calling - Define tools as functions or class methods with attributes
- Structured output - Zod-like schema validation for LLM responses
- Streaming - First-class streaming support with events
- Hooks - Observability hooks for logging, metrics, and error handling
- Type-safe - Full PHP 8.2+ type hints and strict types
Installation
For providers, install the ones you need:
Quick Start
Adding Tools
Tools let the agent perform actions and retrieve information.
Function-based Tools
Class-based Tools with Attributes
Structured Output
Use schemas to validate and parse LLM responses:
Schema Types
Streaming
Simple Text Streaming
Event Streaming
Hooks
Add observability to your agent:
Messages & Conversation
Build conversations manually:
Configuration Options
Providers
Anthropic (Claude)
Google (Gemini)
Creating Custom Providers
Implement ProviderInterface:
Testing
License
MIT
All versions of papi-core with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
The package papi-ai/papi-core contains the following files
Loading the files please wait ...