PHP code example of grptx / yii2-newsletter-mailup

1. Go to this page and download the library: Download grptx/yii2-newsletter-mailup 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/ */

    

grptx / yii2-newsletter-mailup example snippets


"grptx/yii2-newsletter-mailup": "^1.0"

...
'modules' => [
    'newsletter' => [
        'class' => 'grptx\newsletter\mailup\Module',
        'client_id'=>'<your-client-id>',
        'client_secret'=>'<your-client-secret>',
        'callback_uri'=>'http://127.0.0.1/index.php',
        'username'=>'<your-username>',
        'password'=>'<your-password>',
        'group'=><your-recipents-group>,
    ],
...
]
shell
php composer.phar