meanify-co/laravel-notifications

A PHP library to handle multichannel notifications in Laravel

dev-master 2025-09-26 11:21 UTC

This package is auto-updated.

Last update: 2025-09-26 11:21:21 UTC


README

Meanify Logo

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();

Documentation:

- Português (pt-BR) 🇧🇷

- English 🇺🇸

- 📎 Exemplos de Anexos