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

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

ghasedaksms/ghasedaksms-laravel
===============================

laravel package for use ghasedaksms api services

v1.0.3(9mo ago)02.0k[1 issues](https://github.com/ghasedakapi/ghasedaksms-laravel/issues)MITPHPPHP ^8.2

Since Aug 7Pushed 9mo ago2 watchersCompare

[ Source](https://github.com/ghasedakapi/ghasedaksms-laravel)[ Packagist](https://packagist.org/packages/ghasedaksms/ghasedaksms-laravel)[ Docs](https://github.com/ghasedaksms/ghasedaksms-laravel)[ RSS](/packages/ghasedaksms-ghasedaksms-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

 [ ![Logo](https://raw.githubusercontent.com/ghasedakapi/ghasedak-php/master/g4php.png) ](https://github.com/ghasedakapi/ghasedaksms-laravel)

### Ghasedak Laravel SDK

[](#ghasedak-laravel-sdk)

 Easy-to-use SDK for implementing Ghasedak SMS API in your Laravel projects.
 [**Explore the docs »**](https://ghasedak.me/php)

 [Web Service Documents](https://ghasedak.me/developers) · [REST API](https://ghasedak.me/docs) . [Report Bug](https://github.com/ghasedakapi/ghasedaksms-laravel/issues) · [Request Feature](https://github.com/ghasedakapi/ghasedaksms-laravel/issues)

 [![contributors](https://camo.githubusercontent.com/f9159d5d7e23b1299ee993efccd5a3764f3a7025962b5bee8b53a4053fa32fba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f676861736564616b6170692f676861736564616b736d732d6c61726176656c2e737667)](https://github.com/ghasedakapi/ghasedaksms-laravel/graphs/contributors) [![forks](https://camo.githubusercontent.com/cf53c3003e79459e38fdfdf8499c6801cc40cc6be8ae8108207ed347a6f86bc0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f676861736564616b6170692f676861736564616b736d732d6c61726176656c2e737667)](https://github.com/ghasedakapi/ghasedaksms-laravel/network/members) [![stars](https://camo.githubusercontent.com/0b4df26069ede15d40a728abc24a330df57a050f2fb192ebab999555f53b970f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f676861736564616b6170692f676861736564616b736d732d6c61726176656c2e737667)](https://github.com/ghasedakapi/ghasedaksms-laravel/stargazers) [![issues](https://camo.githubusercontent.com/da8a8d01711c512ecbc83c77d19cb33a3fcb3c2b544b811fc6b4efa93814bb6e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f676861736564616b6170692f676861736564616b736d732d6c61726176656c2e737667)](https://github.com/ghasedakapi/ghasedaksms-laravel/issues) [![license](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)

 [English Document](#table-of-contents)

Table of Contents
-----------------

[](#table-of-contents)

- [Install](#install)
- [Usage](#usage)
- [Licence](#license)

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

[](#installation)

You can install the package via composer:

```
composer require ghasedaksms/ghasedaksms-laravel
```

Usage
-----

[](#usage)

1- Put your apikey in .env file:

```
GHASEDAK_SMS_API_KEY="b7ee4eace78************************************************"
```

2- Create a notification (for example SendOtpToUser):

```
php artisan make:notification SendOtpToUser

```

3- Extend SendOtpToUser from GhasedaksmsBaseNotification and fill toGhasedaksms function with DTOs:

```
