📜  向 PC 发送通知 php - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:25.308000             🧑  作者: Mango

代码示例1
use Joli\JoliNotif\Notification;

if ($notifier) {
    $notification =
        (new Notification())
        ->setBody('The notification body')
        ->setTitle('The notification title')
        ->setIcon(__DIR__.'/Resources/icons/success.png');
    ;

    $notifier->send($notification);
}