Download the PHP package laravel-neuro/core without Composer

On this page you can find all versions of the php package laravel-neuro/core. 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 core

Welcome to LaravelNeuro

Build Status Coveralls Packagist Version Packagist Downloads

Join the discussion on the LaravelNeuro Discord Server!

This Laravel package enhances your PHP Laravel application by introducing two powerful features:

  1. Integrating AI APIs into your application code using Pipeline and Prompt Classes.
  2. Setting up and running complex state machines that network any number of generative AI agents and functions to automate tasks and content generation.

Installation

Features

Prebuilt Pipelines

LaravelNeuro ships with a pre-configured set of Pipelines for fast implementation, including:

All pipelines extend the basic LaravelNeuro\LaravelNeuro\Pipeline, which itself extends the ApiAdapter Class, facilitating the transmission of prompts and reception of responses via Guzzle.

Enabling Pipelines

Enable the OpenAI and ElevenLabs pipelines by adding your API key to your Laravel application's .env file:

Change the default models for each Pipeline by publishing the lneuro configuration file if desired:

This is not strictly necessary. Even when using one of the prebuilt Pipelines, you can switch from the default model to any compatible model simply by calling the setModel method on your Pipeline object, passing the name of the model as a string parameter. Example:

Example Usage

Here's an example of using OpenAI's ChatCompletion in a Laravel script with a streaming response:

Output Methods

The OpenAi ChatCompletion Pipeline also allows for various output methods including text, json, array, jsonStream, and arrayStream, whereas the basic Pipeline class ships with the more generic output and stream methods.

State Machines

LaravelNeuro State Machines, called Corporations, are simple to setup and can network AI APIs and scripts for complex tasks.

Setup

For LaravelNeuro state machines to work, migrate its Eloquent models with:

Creating a Voice Assistant

Example setup for a voice-to-voice chat assistant:

  1. Create the Corporation folder and example setup file:

  2. Fill out the setup.json file with the necessary AI models (speech to text, text generation, text to speech).

//setup.json example

  1. Install and run your Corporation:

This setup does not require coding but offers hooks for custom logic injection.

Advanced Use-Cases

More detailed use-cases and documentation will be available on the separate documentation website soon.


All versions of core with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
guzzlehttp/guzzle Version ^7.8
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 laravel-neuro/core contains the following files

Loading the files please wait ....