Download the PHP package cattyneo/laravel-genai without Composer

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

Laravel GenAI

PHP Version Laravel Version License

A comprehensive Laravel package for integrating multiple AI providers (OpenAI, Gemini, Claude, Grok) with unified API, advanced caching, cost tracking, and detailed analytics.

โœจ Features

Core Features

Advanced Services

Development Tools

๐Ÿ“‹ Requirements

๐Ÿ“ฆ Installation

Install the package via Composer:

Run the installation command:

This will:

โš™๏ธ Configuration

Environment Variables

Add these to your .env file:

Configuration File

The main configuration is in config/genai.php. The comprehensive 279-line configuration includes:

Core Settings

Advanced Features

Monitoring & Automation

Advanced Services

Example core configuration:

๐Ÿš€ Quick Start

Basic Usage

Advanced Usage

๐Ÿ“‹ Preset Management

Create reusable prompt presets:

Use presets in your code:

๐Ÿ”ง Artisan Commands

Installation and Setup

Testing and Verification

Statistics and Analytics

Model Management

Advanced Analytics

OpenAI Assistant Import

Import OpenAI Assistants from your account:

๐Ÿ“Š Advanced Services

The package includes four advanced services for production-ready monitoring and optimization:

๐Ÿ”” NotificationService

Multi-channel alert system for monitoring and notifications:

๐Ÿ“ˆ PerformanceMonitoringService

Real-time performance monitoring and metrics collection:

๐Ÿ’ฐ CostOptimizationService

Intelligent cost analysis and optimization recommendations:

๐Ÿ”„ PresetAutoUpdateService

Automated preset management with versioning:

๐ŸŒ REST API Endpoints

The package provides comprehensive REST API for integration:

Cost Analysis API

Performance Monitoring API

Notification Management API

Model Recommendations API

๐Ÿ“Š Analytics and Monitoring

The package provides comprehensive analytics:

Cost Tracking

Usage Statistics

Database Tables

๐Ÿ”„ Caching

Intelligent caching with multiple strategies:

Cache keys are generated based on:

โšก Rate Limiting

Configure rate limits per provider:

๐Ÿงช Testing

The package includes comprehensive testing tools:

๐Ÿ”’ Security

๐Ÿ“„ License

This package is open-sourced software licensed under the MIT license.

๐Ÿ†˜ Support

๐Ÿ™ Credits


All versions of laravel-genai with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version 11.*
orchestra/testbench Version 9.*
predis/predis Version ^2.0|^3.0
spatie/laravel-data Version ^4.15
symfony/yaml Version ^6.0|^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 cattyneo/laravel-genai contains the following files

Loading the files please wait ....