PHP code example of asboldyrev / apprise-notification-sdk

1. Go to this page and download the library: Download asboldyrev/apprise-notification-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

asboldyrev / apprise-notification-sdk example snippets




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

, '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();