1. Go to this page and download the library: Download problematik/php-autoremote 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/ */
problematik / php-autoremote example snippets
use Problematik\AutoRemote\AutoRemote;
use Problematik\AutoRemote\AutoRemoteNotification;
$notification = new AutoRemoteNotification();
$notification->title("Hello World!")->text("This will be the notification message!");
$autoremote = new AutoRemote("YOUR_API_KEY");
$autoremote->send($notification);
$notification = new AutoRemoteNotification(array("title" => "title", "text" => "text");
use Problematik\AutoRemote\AutoRemote;
use Problematik\AutoRemote\AutoRemoteMessage;
$message = new AutoRemoteMessage();
$message->message("message");
$autoremote = new AutoRemote("YOUR_API_KEY");
$autoremote->send($notification);
use Problematik\AutoRemote\AutoRemote;
use Problematik\AutoRemote\AutoRemoteIcon;
use Problematik\AutoRemote\AutoRemoteNotification;
use Problematik\AutoRemote\AutoRemoteNotificationButton;
$button = new AutoRemoteNotificationButton("message to send on button click", "Click me", AutoRemoteIcon::ACTION_HELP);
$anotherButton = new AutoRemoteNotificationButton("another message", "Edit me!", AutoRemoteIcon::CONTENT_EDIT);
$notification = new AutoRemoteNotification();
$notification->title("I've added buttons!")->text("Please click on the button!");
$notification->addButton($button)->addButton($anotherButton);
$autoremote = new AutoRemote("YOUR_API_KEY");
$autoremote->send($notification);
$button = new AutoRemoteNotificationButton("message to send on button click", "Click me", "action_help");
$notification = new AutoRemoteNotification();
$notification->title("title")->text("text");
$notification->vibrationPattern("100,200,100,200");
$notification = new AutoRemoteNotification();
$notification->title("title")->text("text");
$notification->ledColor("red");
$notification->ledOnMS(200)->ledOffMS(200);
$notification->led("red", 200, 200);
$notification = new AutoRemoteNotification();
$notification->title("title")->text("text");
$notification->notificationId("my-id");
$notification->maxProgress(100);
$notification->currentProgress(30);
" "problematik\php-autoremote": "~1.0.2"
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.