PHP code example of texxarulez / mailman_integration

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

    

texxarulez / mailman_integration example snippets


   $config['plugins'] = ['mailman_integration', /* other plugins */];
   

$config['mailman_integration_message_templates'] = [
    ['name' => 'Announcement', 'subject' => 'Announcement', 'body' => "Dear subscribers,\n\n"],
    ['name' => 'Newsletter',   'subject' => 'Monthly Newsletter', 'body' => "Hello everyone,\n\n"],
];
bash
   cp plugins/mailman_integration/config.inc.php.dist plugins/mailman_integration/config.inc.php
   
bash
php translate_locales.php \
  --provider=deepl \
  --deepl-key=YOUR_DEEPL_KEY \
  --deepl-plan=free \
  --fallback-provider=libre \
  --lt-url=http://localhost:5000