Download the PHP package omdiaries/laravel-ai-email-assistant without Composer
On this page you can find all versions of the php package omdiaries/laravel-ai-email-assistant. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-ai-email-assistant
🚀 Laravel AI Email Assistant — v1.0.23 (Stable)
AI-powered email generator for Laravel (9, 10, 11 compatible)
Generate professional, context-aware, and customizable emails using AI — directly from your Laravel app.
🧠 Key Features
✅ Multi-AI Provider Support — use OpenAI, Gemini, or add your own
✅ Customizable Tones — Formal, Friendly, Persuasive, Empathetic, etc.
✅ Dynamic Output Types — generate plain text, HTML, or Markdown emails
✅ Prebuilt Prompt Templates — Welcome, Invoice, Follow-up, Support
✅ Extendable Template System — easily define new templates
✅ Centralized Logging — detailed request/response tracking via Laravel logs
✅ Configurable Error Handling — automatic fallbacks when an AI provider fails
✅ Lightweight & Fast — optimized for production
🛠️ Installation
Step 1: Install the package via Composer
Step 2: Publish the configuration file
Step 3: Add your environment variables
Step 4: Generate an AI-based email using Artisan
💡 Example Usage (Controller)
⚙️ Supported Templates
welcomeinvoicefollowupsupport
You can create your own custom templates under:
🧩 Supported AI Providers
- OpenAI (GPT Models)
- Google Gemini
- (More coming soon)
You can easily extend it by creating a new Adapter class under:
app/Adapters/YourAIProviderAdapter.php
⚙️ Advanced Settings (From Code Base)
🧠 AIEmailService Overview
The main service handles:
- ✅ Provider selection (
OpenAI,Gemini, etc.) - ✅ Dynamic prompt generation from templates
- ✅ Error-safe API calls with fallback strategy
- ✅ Logging with
Log::info()andLog::error() - ✅ Flexible output type formatting
🔄 Upgrade Notes (from Beta)
- Added full multi-provider adapter support
- Introduced advanced tone and output customization
- Enhanced logging & debugging system
- Improved exception handling for provider timeouts
- Rewritten config system for flexibility
🧑💻 Contributing
Pull requests are welcome!
For new providers or features, please open an issue first to discuss the implementation.
🪪 License
This project is licensed under the MIT License.
© 2025 OmDiaries — All rights reserved.
All versions of laravel-ai-email-assistant with dependencies
illuminate/support Version ^9.0|^10.0|^11.0
guzzlehttp/guzzle Version ^7.0
openai-php/client Version ^0.9 || ^0.10