ibrahimsmuhammad / basicsengage-laravel-mailer
Laravel 9+ custom mail transport for BasicsEngage API
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/ibrahimsmuhammad/basicsengage-laravel-mailer
Requires
- php: ^8.0
- illuminate/mail: ^9.0|^10.0|^11.0|^12.0
- symfony/http-client: ^6.0|^7.0
- symfony/mailer: ^6.0|^7.0
README
A PHP Laravel package to extend Laravel's mailer with BasicsEngage support.
Features
- Seamless integration with Laravel's mail system
- Send emails via BasicsEngage
- Easy configuration and usage
Installation
composer require ibrahimsmuhammad/basicsengage-laravel-mailer
Configuration
-
Publish the config file (if available):
php artisan vendor:publish --tag=basicsengage-mailer-config
-
Add your BasicsEngage credentials to
.env:MAIL_MAILER=basicsengage BASICSENGAGE_API_KEY=Your Api Key BASICSENGAGE_API_URL="https://api.basicsengage.com/api/v0/dev/email/send"
Usage
Use the Laravel Mail facade as usual. The package will route emails through BasicsEngage.
use Illuminate\Support\Facades\Mail; Mail::to('recipient@example.com')->send(new \App\Mail\YourMailable());
Customization
You can customize mail settings in config/basicsengage-mailer.php.
'mailers' => [
'basicsengage' => [
'transport' => 'basicsengage',
'api_key' => env('BASICSENGAGE_API_KEY'),
'api_url' => env('BASICSENGAGE_API_URL', 'https://api.basicsengage.com/api/v0/dev/email/send'),
],
License
This package is open-sourced software licensed under the MIT license.