PHP code example of cinghie / yii2-mailchimp

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

    

cinghie / yii2-mailchimp example snippets


$ php composer.phar 

<?= Subscription::widget([
    'list_id' => 'MYLISTID' // if not set raise Error
]) 

<?= Subscription::widget([
    'list_array' => [
        'en' => 'MYLISTID_EN',
        'es' => 'MYLISTID_ES',
        'it' => 'MYLISTID_IT',                        
    ]
])