Download the PHP package vedanshi-shethia/gemini-banner without Composer
On this page you can find all versions of the php package vedanshi-shethia/gemini-banner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vedanshi-shethia/gemini-banner
More information about vedanshi-shethia/gemini-banner
Files in vedanshi-shethia/gemini-banner
Package gemini-banner
Short Description Laravel package to generate website banners using Gemini AI
License MIT
Informations about the package gemini-banner
Gemini Banner Generator for Laravel
A Laravel package to generate high-quality website advertisement banners using Google Gemini Image API, designed specifically for book stores and publishers.
This package strictly preserves original book cover text, typography, and layout by enforcing copy-paste image usage instead of AI text recreation.
โจ Features
- ๐จ AI-generated website banners using Google Gemini
- ๐ Private input images, ๐ public generated banners
- โ Zero text distortion or hallucination
- ๐ Aspect-ratio locking via reference image
- โก Sync & Async (Queue) support
- ๐งฑ Clean service-based architecture
- ๐ช Facade for simple usage
- ๐งช Queue-safe & retry-safe
- โ๏ธ Fully configurable storage paths & disks
- ๐ฆ Laravel auto-discovery support
๐ฆ Installation
Via Composer
โ๏ธ Configuration
Publish the config file:
This creates:
๐ Storage Symlink (Required)
This package stores generated banners on the public disk. Make sure the public storage symlink exists:
This creates:
๐ Environment variables
๐ง Storage Design (Important)
This package follows industry best practices:
| Type | Disk | Visibility |
|---|---|---|
| Input images | local |
๐ Private |
| Generated banners | public |
๐ Public |
โ๏ธ Config Reference
๐ Usage
1๏ธโฃ Sync Generation (Facade)
Returns a public URL of the generated banner.
2๏ธโฃ Async Generation (Queue)
โ Ideal for:
- Heavy image processing
- High-traffic systems
- Background workflows
๐งพ Expected Payload Structure
โ ๏ธ Do NOT pass temp paths (
php/tmp). Files must be stored first using Laravel storage.
๐งน Automatic Cleanup
- Input images are deleted immediately after successful generation
- Cleanup is retry-safe
- Cleanup can be disabled via config
๐งฑ Architecture Overview
- No controllers are published
- No routes are forced
- You stay in control of your application flow
๐ Requirements
- PHP 8.1+
- Laravel 9.x / 10.x / 11.x / 12.x
- Google Gemini API access
๐ License
MIT License
๐ Credits
Developed by Vedanshi Shethia Powered by Google Gemini AI
๐ค Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss improvements.