Laravel

Laravel is an open-source web application framework designed for PHP developers to create scalable, secure, and maintainable web applications. It offers a range of tools and features that simplify common tasks in web development, such as routing, authentication, session management, and database operations. Laravel includes an elegant syntax and powerful tools like an ORM (Object-Relational Mapping) for database management, a template engine (Blade), as well as built-in support for task scheduling, testing, and security features. It also facilitates the creation of RESTful APIs and integrates seamlessly with frontend technologies and third-party services. Laravel is particularly useful for developers who want to accelerate the development process by utilizing reusable components and focusing on building high-quality, efficient web applications.

Installation

Install the Laravel Notification Channel for SMS sending via seven:

composer require laravel-notification-channels/sms77

Configuration

Add your API key to the configuration file:

// config/services.php

'sms77' => [
    'api_key' => 'YOUR_API_KEY',
],

Usage

Use the channel in your notification class:

use Illuminate\Notifications\Notification;
use NotificationChannels\Sms77\Sms77Message;

class ExampleNotification extends Notification
{
    public function via($notifiable)
    {
        return ['sms77'];
    }

    public function toSms77($notifiable)
    {
        return (new Sms77Message())
            ->content('Your message here');
    }
}
Last updated: 5 days ago