meanify-co / laravel-notifications
A PHP library to handle multichannel notifications in Laravel
dev-master
2025-09-26 11:21 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.9
- mailgun/mailgun-php: ^4.3
- meanify-co/laravel-obfuscator: dev-master
- nyholm/psr7: ^1.8
- sendgrid/php-http-client: 4.1.1
- sendgrid/sendgrid: ^8.1
- sendpulse/rest-api: ^2.0
- symfony/http-client: ^7.2
Requires (Dev)
- illuminate/support: ^10.0|^11.0|^12.0
- orchestra/testbench: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2025-09-26 11:21:21 UTC
README
Laravel Notifications
Uma biblioteca completa para envio de notificações centralizadas no Laravel, com suporte a múltiplos drivers de email e broadcasting.
✨ Funcionalidades
- 📧 Múltiplos drivers de email: SMTP, Mailgun, SendGrid, SendPulse
- 📎 Anexos em emails: Suporte completo a arquivos anexos
- 🎯 Broadcasting: Notificações em tempo real
- 🌍 Multi-idioma: Suporte a templates traduzidos
- 📊 Templates dinâmicos: Sistema flexível de templates
- ⚡ Jobs em fila: Processamento assíncrono
- 🔒 Segurança: Criptografia de dados sensíveis
📎 Nova Funcionalidade: Anexos em Emails
Agora você pode enviar emails com anexos usando qualquer driver suportado:
use Meanify\LaravelNotifications\Support\NotificationBuilder; NotificationBuilder::make('invoice-email', $user, 'pt_BR') ->forEmail('smtp', $smtpConfigs, ['client@example.com']) ->with(['invoice_number' => '12345']) ->withAttachments([ [ 'path' => '/path/to/invoice.pdf', 'name' => 'Fatura-12345.pdf', 'mime' => 'application/pdf' ], [ 'content' => base64_encode($generatedContent), 'name' => 'Report.xlsx', 'mime' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ] ]) ->send();