PHP code example of bpa / notifications
1. Go to this page and download the library: Download bpa/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/ */
bpa / notifications example snippets
class DeveloperRoom implements RoomInterface
{
public function getIdentifier()
{
return 'developer-room';
}
public function getName()
{
return 'Room for developers';
}
}
class UrgentDeveloperMessage implements MessageInterface
{
public function getTitle()
{
return null;
}
public function getMessage()
{
return 'There is an urgent task waiting to be done';
}
public function getRoom()
{
return new DeveloperRoom();
}
}