meanify-co / laravel-notifications
A PHP library to handle multichannel notifications in Laravel
Installs: 294
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/meanify-co/laravel-notifications
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.9
- league/commonmark: ^2.7
- 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
- symfony/http-foundation: ^7.3.7
Requires (Dev)
- illuminate/support: ^10.0|^11.0|^12.0
- orchestra/testbench: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2025-12-04 18:38:29 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
- 📡 Canais customizados: Broadcast para canais específicos
- 🌍 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();
📡 Nova Funcionalidade: Canais de Broadcast Customizados
Agora você pode definir canais específicos para suas notificações in-app:
use Meanify\LaravelNotifications\Support\NotificationBuilder; // Canais simples NotificationBuilder::make('user-alert', $user, 'pt_BR') ->with(['message' => 'Alerta importante!']) ->toBroadcastChannels([ 'user.123', 'admin.dashboard', 'team.developers' ]) ->send(); // Canais com modelos obfuscados NotificationBuilder::make('project-update', $user, 'pt_BR') ->toBroadcastChannels([ ['model' => User::class, 'id' => $manager->id], ['channel' => 'project.alerts', 'event' => 'project.completed'] ]) ->send();