Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Notify Bundle Laravel Package

andreas-glaser/notify-bundle

View on GitHub
Deep Wiki
Context7

NotifyBundle

A symfony bundle, making it easy to send email, sms and other notifications

Requirements

  • PHP 7.x
  • Symfony 2.8.x LTS

Installation

composer require andreas-glaser/notify-bundle dev-master

Usage

Define Emails

# app/config/config.yml
andreas_glaser_notify:
  enabled: true
  channels:
    email:
      from_name: "Default Name"
      from_email: "[email protected]"

      emails:

        example_email:
          subject: Welcome :name"
          template_content: "AppBundle:Email:exampleEmail.html.twig"

Run following console command for a full list of config options.

./app/console config:dump-reference andreas_glaser_notify

Send Email

<?php

$subjectData = [
    ':name' => 'Some name'    
];

$bodyData = [];

/** @var \AndreasGlaser\NotifyBundle\Channel\Email\Email $email */
$email = $this
    ->container
    ->get('andreas_glaser_notify.channel_email.loader')
    ->load('example_email', $bodyData, $subjectData);

$this->container
    ->get('andreas_glaser_notify.channel.email.dispatcher')
    ->dispatch($email);
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle