PHPackages                             daworks/laravel-sens - 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. daworks/laravel-sens

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

daworks/laravel-sens
====================

NCloud SENS notification channels for Lovely Laravel.

1.0.0(11mo ago)05MITPHPPHP ^8.2

Since Jul 28Pushed 11mo agoCompare

[ Source](https://github.com/Daworks/laravel-sens)[ Packagist](https://packagist.org/packages/daworks/laravel-sens)[ Docs](https://daworks.io)[ RSS](/packages/daworks-laravel-sens/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

NCLOUD SENS notifications channel for Laravel
=============================================

[](#ncloud-sens-notifications-channel-for-laravel)

이 패키지는 [https://github.com/seungmun/laravel-sens에서](https://github.com/seungmun/laravel-sens%EC%97%90%EC%84%9C) fork하여 라라벨 9.x이상 버전에서 동작하도록 컨버전되었습니다.

This package makes it easy to send notification using [ncloud sens](//ncloud.com/product/applicationService/sens) with Laravel.

And We are working on an unofficial sdk development public project so that ncloud sens can be used in php more flexibly.

Official Community
------------------

[](#official-community)

- [라라벨코리아](https://laravel.kr/)
- [라라벨코리아 오픈채팅](https://open.kakao.com/o/g3dWlf0)

Prerequisites
-------------

[](#prerequisites)

Before you get started, you need the following:

- PHP &gt;= 8.2
- Laravel (9.x / 10.x / 11.x / 12.x)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require daworks/laravel-sens
```

The package will automatically register itself.

You can publish the config with:

```
php artisan vendor:publish --provider="Daworks\Sens\SensServiceProvider" --tag="config"
```

Also, you can use it without publish the config file can be used simply by adding environment variables with:

```
SENS_ACCESS_KEY=your-sens-access-key
SENS_SECRET_KEY=your-sens-secret-key
SENS_SERVICE_ID=your-sens-service-id
SENS_ALIMTALK_SERVICE_ID=your-alimtalk-service-id
SENS_PlUS_FRIEND_ID=your-plus-friend-id
```

If you want to put the `sms_from` value in your .env,

config/services.php

```
/*
|--------------------------------------------------------------------------
| SMS "From" Number
|--------------------------------------------------------------------------
|
| This configuration option defines the phone number that will be used as
| the "from" number for all outgoing text messages. You should provide
| the number you have already reserved within your Naver Cloud Platform
| /sens/sms-calling-number of dashboard.
|
*/
'sens' => [
    'services' => [
        'sms' => [
            'sender' => env('SENS_SMS_FROM'),
        ],
    ],
],
```

.env:

```
SENS_SMS_FROM=1234567890
```

Usage
-----

[](#usage)

This package can be used using with the Laravel default notification feature.

##### 1) Request to send a SMS

[](#1-request-to-send-a-sms)

```
php artisan make:notification SendPurchaseReceipt
```

```
