PHPackages                             sliverwing/alidayu - 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. [API Development](/categories/api)
4. /
5. sliverwing/alidayu

ActiveLibrary[API Development](/categories/api)

sliverwing/alidayu
==================

Sliverwing Alidayu API

0.0.1(9y ago)31371[1 issues](https://github.com/Sliverwing/Laravel-Alidayu/issues)MITPHP

Since Dec 17Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Sliverwing/Laravel-Alidayu)[ Packagist](https://packagist.org/packages/sliverwing/alidayu)[ RSS](/packages/sliverwing-alidayu/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel-Alidayu
===============

[](#laravel-alidayu)

Usage
-----

[](#usage)

- `composer require sliverwing/alidayu`
- add `Sliverwing\Alidayu\AlidayuServiceProvider::class,` to your `config/app.php` file
- `php artisan vendor:publish --provider="Sliverwing\Alidayu\AlidayuServiceProvider"`
- edit `config/alidayu.php` put your appkey &amp; secretKey
- put your sms config in `sms` array
- edit your `.env` file and make sure you have proper `QUEUE_DRIVER` configuration
- add `ALIDAYU_APPKEY` and `ALIDAYU_SECRET` in your `.env` file
- `php artisan queue:work`
- edit your controller where you need to send sms

```
use Sliverwing\Alidayu\Jobs\AlidayuMessageJob;

//... in some action
$this->dispatch(new AlidayuMessageJob($phoneNumber, $paramInYourTemplate, $configNameInAlidayuConfig));

```

- then you will see result in console

example
-------

[](#example)

- I have my `config/alidayu.php` like this:

```
