Download the PHP package helgesverre/pagent without Composer

On this page you can find all versions of the php package helgesverre/pagent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pagent

Pagent 🩸

A Pest-inspired LLM Agent Framework for PHP

Build intelligent agents with automatic tool calling, multi-provider support, safety guards, and multi-agent orchestrationβ€”all with a clean, fluent API.

Latest Version Tests Total Downloads PHP Version License


Why Pagent?


Installation

Requirements:

Quick Start

πŸ“– Explore: Memory & Persistence

Providers

Mock Provider (for testing)

Anthropic (Claude)

OpenAI (GPT)

Ollama (Local LLMs)

Run models locally with complete privacy and zero API costs:

Benefits:

πŸ“– Full Guide: Ollama Integration

Agent Pattern

Agents provide a higher-level abstraction with conversation history:

Provider Configuration

Pagent supports two ways to configure providers:

String-Based (Simple)

Use provider names for quick setup with default configuration:

Instance-Based (Advanced)

Use helper functions or direct instantiation for custom configuration:

When to use each:

Provider-Specific Features

The library is intentionally "leaky" - you can use provider-specific features:

Tool Calling

Define tools using PHP closures with automatic JSON schema generation:

Type hints are automatically converted to JSON schema types:

Class-Based Tools

Pagent includes 9 production-ready class-based tools in the Pagent\Tools namespace:

Both closure-based and class-based tools implement ToolInterface and work seamlessly with all providers.

SearchTool - Full-Text Search

The SearchTool provides powerful full-text search capabilities powered by TNTSearch, enabling agents to search through documents, files, and databases:

Key Features:

Configuration Options:

Search Results:

Perfect for building:

Observability & Distributed Tracing

Pagent includes comprehensive OpenTelemetry instrumentation for monitoring and debugging your LLM agents in production.

Quick Start

Production Monitoring

Connect to Jaeger, Zipkin, or any OpenTelemetry-compatible platform:

What Gets Traced

Supported Platforms

Multi-Agent Workflow Tracing

Benefits

πŸ“– Full Guide: Observability Documentation

Development

Quick Commands

Manual Testing

Documentation

The Complete Guide

The Pagent Guide is a comprehensive 28-chapter tutorial covering everything from basics to advanced patterns:

See guide/README.md for learning paths based on your experience level.

Integration Guides

Learn how to integrate Pagent into your application:

Feature Guides

Deep-dive into specific features:

See the docs/ folder for all guides.


Contributing

We welcome contributions! Please see CONTRIBUTING.md for details on:

Read our Security Policy.

Changelog

See CHANGELOG.md for recent changes.

License

MIT License. See LICENSE for details.

Credits

Created by Helge Sverre.

Inspired by Pest's elegant API design.


All versions of pagent with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-curl Version *
guzzlehttp/guzzle Version ^7.10
nyholm/psr7 Version ^1.8
open-telemetry/api Version ^1.7
open-telemetry/exporter-otlp Version ^1.3
open-telemetry/sdk Version ^1.9
open-telemetry/sem-conv Version ^1.37
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/log Version ^3.0
swaggest/json-schema Version ^0.12.43
symfony/process Version ^7.3
teamtnt/tntsearch Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package helgesverre/pagent contains the following files

Loading the files please wait ...