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

ActiveLibrary

corean/laravel-sens
===================

NCloud SENS notification channels for Lovely Laravel.

v1.0.1(1y ago)034MITPHPPHP ^7.2|^8.0

Since May 22Pushed 1y agoCompare

[ Source](https://github.com/corean/laravel-sens)[ Packagist](https://packagist.org/packages/corean/laravel-sens)[ Docs](https://open.kakao.com/o/g3dWlf0)[ RSS](/packages/corean-laravel-sens/feed)WikiDiscussions master Synced 1mo ago

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

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

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

[![Latest Stable Version](https://camo.githubusercontent.com/6ce5a79e8494736e4f01c40d04dba58a1794ba32f2567065d925cb9f9a1ff249/68747470733a2f2f706f7365722e707567782e6f72672f7365756e676d756e2f6c61726176656c2d73656e732f76)](//packagist.org/packages/seungmun/laravel-sens)[![Total Downloads](https://camo.githubusercontent.com/f390c1005b0ef44148a34cbcf54787991a010bf2fb02cf3ca3239be265703963/68747470733a2f2f706f7365722e707567782e6f72672f7365756e676d756e2f6c61726176656c2d73656e732f646f776e6c6f616473)](//packagist.org/packages/seungmun/laravel-sens)[![License](https://camo.githubusercontent.com/b5359259163f0bb012355820c51770bd7b104635125d728cadab38aeb6d67b26/68747470733a2f2f706f7365722e707567782e6f72672f7365756e676d756e2f6c61726176656c2d73656e732f6c6963656e7365)](//packagist.org/packages/seungmun/laravel-sens)[![Build Status](https://github.com/seungmun/laravel-sens/workflows/tests/badge.svg)](https://github.com/seungmun/sens-php/actions)

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.

You can check the project here. ()

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;= 7.2 (9.x also compatible)
- Laravel (9.x / 8.x / 7.x / 6.x)

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

[](#installation)

You can install the package via composer:

```
composer require corean/laravel-sens
```

The package will automatically register itself.

You can publish the config with:

```
php artisan vendor:publish --provider="Seungmun\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
```

```
