PHP code example of dd / evolutioncms-snippets-ddsendfeedback
1. Go to this page and download the library: Download dd/evolutioncms-snippets-ddsendfeedback 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/ */
dd / evolutioncms-snippets-ddsendfeedback example snippets
//Include (MODX)EvolutionCMS.libraries.ddInstaller
nstaller/DInstaller::install([
'url' => 'https://github.com/DivanDesign/EvolutionCMS.snippets.ddSendFeedback',
'type' => 'snippet'
]);
//Include (MODX)EvolutionCMS.libraries.ddTools
/ddTools/modx.ddtools.class.php'
);
//Run (MODX)EvolutionCMS.snippets.ddSendFeedback
\DDTools\Snippet::runSnippet([
'name' => 'ddSendFeedback',
'params' => [
'senders' => [
'telegram' => [
'botToken' => '123:AAAAAA',
'chatId' => '-11111',
'tpl' => '@CODE:Test message from [(site_url)]!',
],
],
],
]);