1. Go to this page and download the library: Download se7enxweb/cjw_newsletter 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/ */
se7enxweb / cjw_newsletter example snippets
// Imports the missing newsletter classes, creates the section "CJW Newsletter" and a newsletter tree
// (root, system, one list) below the content root, and writes RootFolderNodeId to
// settings/override/cjw_newsletter.ini.append.php. Every step leaves what exists alone.
$admin = eZUser::fetchByName( 'admin' );
eZUser::setCurrentlyLoggedInUser( $admin, $admin->attribute( 'contentobject_id' ) );
print_r( CjwNewsletterClassInstaller::install() );
$report = array();
CjwNewsletterClassInstaller::installSection( $report );
$rootNodeID = CjwNewsletterClassInstaller::installTree( null, $report );
if ( $rootNodeID )
$report['setting'] = CjwNewsletterClassInstaller::writeRootFolderSetting( $rootNodeID );
print_r( $report );
ini
[ExtensionSettings]
ActiveExtensions[]=cjw_newsletter