Download the PHP package navi-ai/php-sdk without Composer

On this page you can find all versions of the php package navi-ai/php-sdk. 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 php-sdk

Navi PHP SDK

Official PHP SDK for the Navi AI Agent Platform.

Requirements

Installation

Or add to your composer.json:

Quick Start

Configuration

API Reference

Check API Status

Agents

List Available Agents

Get a Specific Agent

Conversations

Create a Conversation

Contact Metadata: Flat key-value pairs stored with the contact for additional information and search capabilities. Values can be strings, numbers, booleans, or null. Metadata is merged on updates (new values override existing).

List Conversations

Get a Conversation

With contact filtering (to ensure contacts only access their own conversations):

Update a Conversation

With contact filtering for authorization:

List Messages with Pagination

Close a Conversation

Chat

Streaming with Callback

Best for real-time output in CLI or streaming HTTP responses:

Streaming with Generator

For more control over the stream processing:

Synchronous (Non-Streaming)

Wait for the complete response:

With Contact Identification

You can specify the contact sending the message. This creates or retrieves a contact to associate with the message:

This is useful when:

With Context

Pass additional context with your message:

With Runtime Parameters

Runtime parameters are dynamic values that can be injected at execution time and referenced in agent configurations using ${params.key} syntax. Use them for user tokens, API keys, and other per-execution values:

Where runtime parameters can be used in agent configuration:

Built-in parameters (automatically available):

Parameter Description
params.current_date Current date (YYYY-MM-DD)
params.current_datetime Full ISO datetime
params.current_timestamp Unix timestamp in ms
params.execution_id Unique execution identifier

Example combining contact identification, metadata, context, and runtime parameters:

Stream Events

Event Description Data
message_created User message saved userMessageId, conversationId
reasoning_start Agent started thinking -
reasoning_delta Agent thinking text text
reasoning_complete Agent finished thinking action, confidence
tool_start Tool execution started tool, args
tool_complete Tool execution finished tool, result
response_start Response generation started -
response_delta Response text chunk text
response_complete Response finished response
complete Execution complete success, executionId, assistantMessageId, stats
error Error occurred error

Error Handling

Complete Example

License

MIT


All versions of php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-curl Version *
guzzlehttp/guzzle Version ^7.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 navi-ai/php-sdk contains the following files

Loading the files please wait ...