PHP code example of secit-pl / signal-notifier-bundle
1. Go to this page and download the library: Download secit-pl/signal-notifier-bundle 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/ */
secit-pl / signal-notifier-bundle example snippets
declare(strict_types=1);
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Notifier\Message\SmsMessage;
use Symfony\Component\Notifier\TexterInterface;
use Symfony\Component\Routing\Annotation\Route;
class IndexController extends AbstractController
{
/**
* @Route("/")
*/
public function index(TexterInterface $texter)
{
$texter->send((new SmsMessage(
'+481234567890',
'Hello :)'
))->transport('signal'));
// ...
}
}