An open API service indexing awesome lists of open source software.

https://github.com/ovr/notify

Notify user in OS from PHP
https://github.com/ovr/notify

Last synced: 3 months ago
JSON representation

Notify user in OS from PHP

Awesome Lists containing this project

README

        

Notify
======

> Notify user in OS

# How to use

First you need to get service with provider into it:

```php
use PHPSystem\Notify;

$service = new Notify\Service(ProviderFactory::getAvailable());
```

How to send text:

```php
$service->sendMessage("my simple test");
```

Send custom `Notification` :

```php
$notification = new Notify\Notification("Simple text message");
$service->sendMessage($notification);
```

License
-------

This project is open-sourced software licensed under the MIT License. See the LICENSE file for more information.