PHP code example of tomatophp / messagebird-notifications
1. Go to this page and download the library: Download tomatophp/messagebird-notifications 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/ */
tomatophp / messagebird-notifications example snippets
php
use NotificationChannels\Messagebird\MessagebirdChannel;
use NotificationChannels\Messagebird\MessagebirdMessage;
use Illuminate\Notifications\Notification;
class VpsServerOrdered extends Notification
{
public function via($notifiable)
{
return [MessagebirdChannel::class];
}
public function toMessagebird($notifiable)
{
return (new MessagebirdMessage("Your {$notifiable->service} was ordered!"));
}
}
php
return (new MessagebirdMessage("Your {$notifiable->service} was ordered!"))->setRecipients($recipients);
php
return (new MessagebirdMessage("Your {$notifiable->service} was ordered!"))->setReference($id);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.