PHP code example of naif / mailchimp-tool

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

    

naif / mailchimp-tool example snippets


  public function tools()
  {
      return [
           new MailchimpTool()
      ];
  } 

NOVA_MAILCHIMP_API_KEY=xxxxxxxxxxxxxxxxx-us19
NOVA_MAILCHIMP_LIST_ID=xxxxxx
NOVA_MAILCHIMP_TEMPLATE_ID=12345
NOVA_MAILCHIMP_FROM_NAME=Name
[email protected]