PHPackages                             samueletur/magic-channel-notification - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. samueletur/magic-channel-notification

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

samueletur/magic-channel-notification
=====================================

Channel de notificação para integrar com Magic Forms

0.0.3(3y ago)035MITPHPPHP &gt;7.4

Since May 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/samueletur/magic-channel-notification)[ Packagist](https://packagist.org/packages/samueletur/magic-channel-notification)[ RSS](/packages/samueletur-magic-channel-notification/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (4)Used By (0)

Magic Channel Notifications
===========================

[](#magic-channel-notifications)

Utilizando o Magic Form para envio de mensagens através da API disponibilizada pela empresa

Instalação
----------

[](#instalação)

Utilizando o composer para instalação

```
composer require samueletur/magic-channel-notification
```

Configuração
------------

[](#configuração)

Adicione o parametro `MM2_CODIGO` no arquivo .env com o token recebido

```
MM2_CODIGO=XXX
```

Após gerar a notificação, especifique o canal de envio como *magic* na função via

```
public function via($notifiable)
{
    return ['magic'];
}
```

Configure os parametros de retorno na função `toArray`

```
    public function toArray($notifiable)
    {
        return [
            'template' => base64_encode($this->mailTemplate($notifiable)),
            'template_emails_to' => $notifiable->email,
            'mm2_assunto' => 'Novo arquivo compartilhado - Magic Files Exchange',
        ];
    }
```

Template
--------

[](#template)

Acrescente a função para enviar o template do e-mail

```
public function mailTemplate($notifiable)
{
    $template = get_class($this);

    return (new $template($this->groupFile))->toMail($notifiable)->render();
}
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
composer test
```

Créditos
--------

[](#créditos)

- [Samuel Etur](https://github.com/samueletur)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

3

Last Release

1430d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2828dc7b9621829cfa7cbd5eaff8f291f5fa82324abce37c32e1ce90f5c826e?d=identicon)[samueletur](/maintainers/samueletur)

---

Top Contributors

[![samueletur](https://avatars.githubusercontent.com/u/1007801?v=4)](https://github.com/samueletur "samueletur (5 commits)")

### Embed Badge

![Health badge](/badges/samueletur-magic-channel-notification/health.svg)

```
[![Health](https://phpackages.com/badges/samueletur-magic-channel-notification/health.svg)](https://phpackages.com/packages/samueletur-magic-channel-notification)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M52](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
