Download the PHP package sharpapi/laravel-ecommerce-thank-you-email without Composer
On this page you can find all versions of the php package sharpapi/laravel-ecommerce-thank-you-email. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sharpapi/laravel-ecommerce-thank-you-email
More information about sharpapi/laravel-ecommerce-thank-you-email
Files in sharpapi/laravel-ecommerce-thank-you-email
Package laravel-ecommerce-thank-you-email
Short Description AI Thank You Email Generator for Laravel powered by SharpAPI.com
License MIT
Homepage https://github.com/sharpapi/laravel-ecommerce-thank-you-email
Informations about the package laravel-ecommerce-thank-you-email

AI Thank You Email Generator for Laravel
🚀 Leverage AI API to generate personalized thank you emails for E-commerce applications.
Check the details at SharpAPI's E-commerce API page.
Requirements
- PHP >= 8.1
- Laravel >= 10.48.29
Installation
Follow these steps to install and set up the SharpAPI Laravel Thank You Email Generator package.
-
Install the package via
composer: -
Register at SharpAPI.com to obtain your API key.
-
Set the API key in your
.envfile: - [OPTIONAL] Publish the configuration file:
Key Features
- AI-Powered Thank You Email Generation: Efficiently create personalized thank you emails for your e-commerce platform.
- Multi-language Support: Generate thank you emails in multiple languages.
- Customizable Length: Control the length of the generated thank you email.
- Voice Tone Control: Set your preferred writing style for the thank you email.
- Context-Aware Generation: Provide additional context to improve email relevance.
- Robust Polling for Results: Polling-based API response handling with customizable intervals.
- API Availability and Quota Check: Check API availability and current usage quotas with SharpAPI's endpoints.
Usage
You can inject the EcommerceThankYouEmailService class to access thank you email generation functionality. For best results, especially with batch processing, use Laravel's queuing system to optimize job dispatch and result polling.
Basic Workflow
- Dispatch Job: Send product name to the API using
generateThankYouEmail, which returns a status URL. - Poll for Results: Use
fetchResults($statusUrl)to poll until the job completes or fails. - Process Result: After completion, retrieve the results from the
SharpApiJobobject returned.
Note: Each job typically takes a few seconds to complete. Once completed successfully, the status will update to
success, and you can process the results as JSON, array, or object format.
Controller Example
Here is an example of how to use EcommerceThankYouEmailService within a Laravel controller:
Handling Guzzle Exceptions
All requests are managed by Guzzle, so it's helpful to be familiar with Guzzle Exceptions.
Example:
Optional Configuration
You can customize the configuration by setting the following environment variables in your .env file:
Thank You Email Data Format Example
AI agents (Laravel Boost)
This package ships a Laravel Boost skill, sharpapi-ecommerce-thank-you-email, that teaches AI coding agents how to call EcommerceThankYouEmailService correctly: submit, then fetchResults() in a queued job, check the job status, and read the result. It loads on demand and adds no always-on guideline. Boost 2 or newer is required.
In the host app:
Select sharpapi/laravel-ecommerce-thank-you-email when Boost lists the packages it found.
Support & Feedback
For issues or suggestions, please:
Changelog
Please see CHANGELOG for a detailed list of changes.
Credits
- A2Z WEB LTD
- Dawid Makowski
- Enhance your Laravel AI capabilities!
License
The MIT License (MIT). Please see License File for more information.
Follow Us
Stay updated with news, tutorials, and case studies:
All versions of laravel-ecommerce-thank-you-email with dependencies
ext-json Version *
laravel/framework Version ^10.48.29|^11.0|^12.0|^13.0
sharpapi/php-core Version ^1.4.1