Download the PHP package use-the-fork/synapse without Composer

On this page you can find all versions of the php package use-the-fork/synapse. 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 synapse

🧠 Synapse

Build Status

Click here to read the documentation

Synapse allows you to seamlessly integrate and manage AI agents in your Laravel applications. Inspired by Langchain and Laravel Saloon, this package simplifies AI agent creation and management, giving you the tools to run them at scale.

Features

Installation

Requires PHP 8.1+

  1. Install via Composer:

  2. Run the install command:

  3. If you plan to use DatabaseMemory, ensure you publish the migrations by saying "yes" during installation.

Configuration

  1. Set up your .env file with the required API keys:

  2. If packages are not autoloaded, add the service provider:

    For Laravel 10:

    For Laravel 11:

Usage

Defining an Agent

Agents are the core of Synapse. To create an agent, extend the Agent class and define key methods like resolveIntegration, resolveMemory, and $promptView.

Example:

Memory Options

Synapse offers two types of memory for agents:

To switch between these options, simply change the memory type in the resolveMemory method.

Example using DatabaseMemory:

Building Prompts

Use Laravel's Blade system to create agent prompts. Leverage the custom <message> tags to distinguish between user, system, and tool messages.

Example Blade prompt view:

Integrations

Synapse supports the following integrations:

To configure these integrations, add the appropriate API key to your .env file and specify the integration in the resolveIntegration method.

Example:

Agent Lifecycle & Hooks

The Synapse agent lifecycle offers several points where you can hook in to modify the agent's behavior. These hooks allow for customizations such as adjusting input, memory, tools, and integration responses.

Refer to the full documentation for more details on available hooks and how to use them.

Documentation

Click here to read the documentation

Support Synapse's Development

If you would like to support my work, you can donate to my Ko-Fi page by simply buying me a coffee or two!

Buy Me a Coffee at ko-fi.com

Thank you for using Synapse ❤️

Credits

This project would not have been possible without:

License

This package is open-source and licensed under the MIT License.


Start building AI-driven applications with Laravel Synapse today!


All versions of synapse with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/container Version ^10.0|^11.0
illuminate/database Version ^10.0|^11.0
illuminate/events Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0
openai-php/client Version ^0.10.1
phpstan/phpdoc-parser Version ^1.32
saloonphp/saloon 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 use-the-fork/synapse contains the following files

Loading the files please wait ....