PHP code example of studservis / feedback

1. Go to this page and download the library: Download studservis/feedback 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/ */

    

studservis / feedback example snippets


$botToken = env('BOT_TOKEN');
$chatId = env('BOT_CHAT_ID');

$client = new ProxyTelegramConnector(string $botToken, string $chatId)

$client = new ProxyTelegramConnector(..., string $botToken, string $chatId) // Implements ClientInterface

ClientInterface::class => function (ContainerInterface $container) {
    return new ProxyTelegramConnector(
        $container->get(PsrClientInterface::class),
        $container->get(Psr17Factory::class),
        env('BOT_TOKEN') ?? '',
        env('BOT_CHAT_ID') ?? ''
    );
},

use Feedback\Interfaces\ClientInterface;

class CustomConnector implements ClientInterface
{

}

use Feedback\Connectors\ProxyTelegramConnector;

class CustomConnector extends ProxyTelegramConnector
{

}