PHP code example of mspacemedia / silverstripe-newsletter
1. Go to this page and download the library: Download mspacemedia/silverstripe-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/ */
mspacemedia / silverstripe-newsletter example snippets
interface AudienceSourceProvider
{
public function getKey(): string; // matches NewsletterAudience.SourceKey
public function getTitle(): string; // used if the audience is auto-created
public function getSubscribers(): iterable; // yields rows (see below)
}