Download the PHP package subhashladumor1/laravel-ai-video without Composer

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

Laravel AI Video โ€“ High-Performance Multi-Model Video Engine

Latest Version on Packagist License Total Downloads

Laravel AI Video is a comprehensive, production-ready package for generating cinematic AI videos. It acts as an orchestration layer, combining the best AI models for scripting, visuals, motion, and voice into a single, unified pipeline.

Whether you need to automate Social Media Reels, create Product Ads, or generate Storytelling Content, this package handles the complex workflow of chaining AI APIs and rendering the final output.


๐ŸŒŸ Features


๐Ÿ› ๏ธ How It Works

The Composed Driver automates the entire video production lifecycle:


๐Ÿš€ Installation

  1. Install via Composer:

  2. Publish Configuration:

  3. Install FFmpeg: Ensure ffmpeg and ffprobe are installed on your server.

  4. Configure .env: Add your API keys. The package works best with multiple providers enabled.

๐Ÿ“– Complete Usage Guide

1. Text-to-Video (The "Composed" Pipeline)

This is the most powerful feature. It creates a full video from a simple text prompt.

Basic Usage:

Advanced Usage (Asynchronous Job): Recommended for production to avoid timeout issues.

2. Image-to-Video (Motion Generation)

Ideal for bringing product photography or static assets to life. Supports Runway, Leonardo, and Sora.

3. Scene Planning (Scripting Only)

Use the AI Director to break down a script into visual scenes without generating the video yet. Useful for UI previews.

4. Voiceover Generation (TTS)

Generate high-quality AI voiceovers directly.


๐Ÿ›ก๏ธ AI Guard & Cost Control

This package includes a Budget Enforcement System. It estimates the cost of every operation before it runs.

How to Configure: In config/ai-video.php:

Usage Flow:


๐Ÿ“– Function Reference

VideoDriver Interface

The Facade AiVideo::driver('name') returns an instance implementing these methods:

Method Description Options
textToVideo($prompt, $opts) Generates full video from text. duration, template, style
imageToVideo($path, $opts) Animates a static image. motion_bucket_id, seed
generateScenes($script) Returns array of scene objects. model (e.g., gpt-4o)
generateVoice($text, $voice) Creates MP3 audio from text. output_path, speed
estimateCost($type, $params) Returns float ($) cost estimate. input

Supported Templates

Templates control the Output Resolution and default styling.

Template Aspect Ratio Resolution Best For
youtube-standard 16:9 1920x1080 YouTube, TV, Desktop
youtube-short 9:16 1080x1920 Shorts, TikTok, Reels
instagram-reel 9:16 1080x1920 Instagram Stories/Reels
square-post 1:1 1080x1080 FB/Insta Feed, Product Ads
portrait 4:5 1080x1350 Mobile Feed

๐Ÿ—๏ธ Extending

You can create your own drivers by implementing Subhashladumor1\LaravelAiVideo\Contracts\VideoDriver.

Register it in AppServiceProvider:


๐Ÿงช Testing

๐Ÿ“„ License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-ai-video with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3|^8.4
phpunit/phpunit Version ^9.0|^10.0|^11.0|^12.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0
illuminate/cache Version ^9.0|^10.0|^11.0|^12.0
illuminate/session Version ^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^9.0|^10.0|^11.0|^12.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 subhashladumor1/laravel-ai-video contains the following files

Loading the files please wait ...