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

LaravelNeuro

Build Status Coveralls Packagist Version Packagist Downloads

Join the conversation on the LaravelNeuro Discord Server!

LaravelNeuro is a Laravel package that brings two major features to your application:

  1. Pipelines: Easily integrate AI models (such as OpenAI, ElevenLabs, and Google Gemini) using a builder-pattern approach. Pipelines abstract API communication via drivers and prompt classes.
  2. Corporations: Set up and run complex state machines that network AI agents and functions to automate tasks and content generation.

See LaravelNeuro in action on the Anomalous Blog, a 100% automated bi-lingual blog with images and voice-over, turning real news articles into supernatural stories, which are then evaluated and classified by the fictional SCP-Foundation.


Installation

Install via Composer:

Publish the configuration file if you want to override defaults:


Pipelines

LaravelNeuro comes with a set of prebuilt Pipelines that let you quickly integrate AI models into your Laravel application.

Overview

Each Pipeline provides a fluent interface for configuring:

By leveraging builder-pattern methods, you can chain configurations and call methods on the driver without directly modifying the Pipeline’s internal state.

Prebuilt Pipelines

ElevenLabs Text-to-Speech

OpenAI Pipelines

Google Gemini Multimodal

Enabling and Configuring Pipelines

  1. Environment Variables:
    Add your API keys to your .env file:

  2. Configuration:
    Customize default models and API endpoints by editing the published configuration file (config/laravelneuro.php).

  3. Usage Example:
    Here's how to use the ChatCompletion pipeline:

Each Pipeline also supports various output methods such as text(), json(), array(), and their streaming counterparts.


Corporations

Corporations in LaravelNeuro are state machines that orchestrate the execution of complex tasks by networking multiple AI agents. With Corporations, you can create sophisticated workflows that handle everything from data ingestion and processing to automated content generation.

Overview

A Corporation is established via the Incorporate process:

Key Concepts

Example: Setting Up a Voice Assistant Corporation

  1. Prebuild the Corporation:

    This command creates the necessary folder structure and a setup.json file in your new Corporation folder.

  2. Edit the Setup File:
    Customize setup.json to define:

    • Units: E.g., Transcription, ChatCompletion, Studio.
    • Agents: Specify details like model, pipeline, prompt class, and roles.
    • Transitions: Outline the sequential steps for your state machine.
  3. Install the Corporation:

    This command reads your setup file and creates the corresponding database records and files.

  4. Run the Corporation:
    The lneuro:run [CORPORATION NAMESPACE] [Optional:TASK] command executes the state machine, processing transitions and generating a final output based on your defined workflow. You can view the output in the console enabling the --debug flag and log run history by enabling the --history flag.

Consolidation and Cleanup

To manage database clutter from multiple installations and Corporation runs, LaravelNeuro includes a cleanup command (lneuro:cleanup), which removes history entries and can consolidate old Corporation installations with their most current counterparts.


Contributing

Contributions, improvements, and bug fixes are welcome!
Please review our CONTRIBUTING.md file for details on our code of conduct and the process for submitting pull requests.


License

LaravelNeuro is open-sourced software licensed under the MIT license.


This README now provides a structured and detailed overview of both Pipelines and Corporations, showcasing how users can integrate AI models and set up complex state machines in their Laravel applications. Feel free to adjust further based on your project's evolving features and documentation style preferences.


All versions of core with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version ^12.0 || ^11.0 || ^10.0
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 laravel-neuro/core contains the following files

Loading the files please wait ....