Weave 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

Alert Bundle Laravel Package

atc/alert-bundle

View on GitHub
Deep Wiki
Context7

.AtcAlertBundle

What now?

this bundle provides services to launch sms or email messages For sms it uses an api like the one provided by nexmo

What in the future?

this bundle is meant to provide a preprogrammed alert system working whith cron

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require atc/alert-bundle "~1"

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Atc\Bundle\AlertBundle\AtcAlertBundle(),
        );

        // ...
    }

    // ...
}

Config

atc_alert:
    mail_from_default : "[email protected]"
    sms_from_default : "0102030405"
    sms_url : "https://rest.nexmo.com/sms/json"
    sms_key : "apiKey"
    sms_secret : "apiSecret"
    mailjet_public : "mailjetApikeyOrNulToUseShiftmail"
    mailjet_private : "mailjetApikeyOrNulToUseShiftmail"

Use it

<?php

$this->get('atc_alert.alert.manager')->createMailAlert(
        $email(),
        $this->renderView('::_email.html.twig', array('foo' => $bar)),
        $sujet,
        $from = null,
        $date = null
);

$this->get('atc_alert.alert.manager')->createSmsAlert($to, $body, $from = null, $date = null);

$this->get('atc_alert.alert.manager')->createSmsMailAlert($toSms, $toMail, $body, $subject, $from = null, $date = null);

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.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel