Download the PHP package larva/laravel-ai-volc without Composer

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

Laravel AI · 火山方舟(Volcengine Ark)驱动

为 Laravel AI 提供火山引擎方舟平台(Volcengine Ark)接入驱动,在官方 openai-compatible 驱动的文本对话 / 向量能力之上,补齐方舟平台的多模态扩展能力:

License Latest Stable Version Total Downloads

环境需求

安装

包通过 Laravel Package Discovery 自动注册 volc 驱动,无需手动添加 ServiceProvider。

配置

在 config/ai.php 的 providers 中新增火山方舟接入点:

.env:

如需将火山方舟设为默认提供方:

使用

文本对话 / 向量嵌入

文本与向量能力继承自官方 OpenAI 兼容驱动,用法与 Laravel AI 官方文档 一致,将提供方指定为 volc 即可:

TTS 语音合成

SDK 占位音色 default-female / default-male 会映射为配置中的 voice / male_voice;也可以直接传入方舟音色 ID:

方舟不支持 OpenAI 的 instructions 参数,情绪 / 语气通过音色与提示文本控制。

Seedream 图像生成

尺寸与质量映射规则:显式 size(支持 1:1 / 2:3 / 3:2 比例或 1536x1024 显式像素)优先;未指定时 quality 映射为方舟分辨率档位(low → 1K、medium → 2K、high → 4K)。

Seedance 视频生成

视频生成为方舟异步任务接口(SDK 暂无 VideoProvider 契约),由 VolcProvider 直接提供:

任务 ID 仅保存 7 天,生成完成后请及时下载视频。

异常处理

网关统一使用 Laravel AI 的异常体系,可在调用处捕获:

开发与测试

贡献

欢迎提交 Issue 与 Pull Request。提交前请:

  1. 通过 composer test 全部测试
  2. 通过 composer check-style 风格检查
  3. 在 PR 中描述清楚变更背景与影响范围

安全

如发现安全漏洞,请联系:[email protected],请勿在公开 Issue 中披露。

许可证

本项目基于 MIT 协议发布。


All versions of laravel-ai-volc with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
illuminate/http Version ^12.0 || ^13.0
laravel/ai Version ^0.10.3
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 larva/laravel-ai-volc contains the following files

Loading the files please wait ...