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
- Host: GitHub
- URL: https://github.com/ovr/notify
- Owner: ovr
- License: other
- Created: 2014-09-06T05:30:37.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-03T15:15:42.000Z (about 10 years ago)
- Last Synced: 2025-01-13T09:08:32.991Z (5 months ago)
- Language: PHP
- Homepage: http://php-system.dmtry.me/
- Size: 203 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.