Skip to content

asboldyrev/apprise-notification-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Current support

  • Telegram
  • Email
  • Home Assistant

Install

composer require asboldyrev/apprise-notification-sdk

Sample

<?php

use Asboldyrev\AppriseNotificationSdk\Client;
use Asboldyrev\AppriseNotificationSdk\Content;
use Asboldyrev\AppriseNotificationSdk\Email;
use Asboldyrev\AppriseNotificationSdk\Hassio;

require_once './vendor/autoload.php';

$client = new Client('https://apprise.server.com');

$email = Email
	::create( 'testuser', '000000', 'gmail.com', '[email protected]', 587, 'smtp.gmail.com')
	->addEmail('[email protected]', 'Patrick');

$result = $client
	->setContent(new Content('test message', 'title'))
	->hassio(new Hassio('ha.server.com', 'access_token'))
	->email($email)
	->telegram('token_bot', 'chat_id')
	->send();
 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages