PHPackages                             yish/sybase-notification-channel - 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. yish/sybase-notification-channel

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

yish/sybase-notification-channel
================================

Sybase 365 notification channel with Laravel.

1.1.1(5y ago)052MITPHPPHP ^7.1

Since Aug 26Pushed 5y agoCompare

[ Source](https://github.com/Mombuyish/sybase-notification-channel)[ Packagist](https://packagist.org/packages/yish/sybase-notification-channel)[ Docs](https://github.com/yish/sybase-notification-channel)[ RSS](/packages/yish-sybase-notification-channel/feed)WikiDiscussions master Synced 2w ago

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

Laravel Sybase Notification Channel
===================================

[](#laravel-sybase-notification-channel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7387e633915a41a8a18f173f347eb3479d4d41186b920b62c3f4320033f8d5a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796973682f7379626173652d6e6f74696669636174696f6e2d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yish/sybase-notification-channel)[![Build Status](https://camo.githubusercontent.com/9fac72cca208b8c64486ae0bfcaddb43d38de0157343ef89685370b9d93e9f89/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4d6f6d6275796973682f7379626173652d6e6f74696669636174696f6e2d6368616e6e656c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Mombuyish/sybase-notification-channel)[![Total Downloads](https://camo.githubusercontent.com/09a788252a54e849c0c631d16b33efea433cb3e4d0845b0c7190f473d4e9e520/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796973682f7379626173652d6e6f74696669636174696f6e2d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yish/sybase-notification-channel)

Sybase 365 notification channel with Laravel.

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

[](#installation)

You can install the package via composer:

```
composer require yish/sybase-notification-channel
```

Usage
-----

[](#usage)

### Creating notification:

[](#creating-notification)

```
$ php artisan make:notification SendMessage
```

### Notify the service and send request

[](#notify-the-service-and-send-request)

#### Basic

[](#basic)

```
Notification::route('sybase', $phone)->notify(new \App\Notifications\SendMessage);
```

Or you can construct the properties:

```
Notification::route('sybase', $phone)
->notify(new \App\Notifications\SendMessage(
    "Hi, here is yours",
    "this is content."
));
```

Next, navigate to `App\Notifications\SendMessage.php`, set driver:

```
use Yish\Notifications\Messages\SybaseMessage;
class SendMessage extends Notification
{
    use Queueable;

    public $subject;

    public $content;

    public function __construct($subject, $content)
    {
        $this->subject = $subject;
        $this->content = $content;
    }

    public function via($notifiable)
    {
        return ['sybase'];
    }

    public function toSybase($notifiable)
    {
        return (new SybaseMessage)
                ->subject($this->subject)
                ->content($this->content);
    }
    ....
```

Finally, you must be set service account and password, add a few configuration options to your `config/services.php`

```
'sybase' => [
    'account' => env('SYBASE_ACCOUNT'),
    'password' => env('SYBASE_PASSWORD'),
    'endpoint' => env('SYBASE_ENDPOINT'),
],
```

### Advanced

[](#advanced)

In some cases, you want to customize the recipient or automatically sending:

```
