Download the PHP package se7enxweb/cjw_newsletter without Composer

On this page you can find all versions of the php package se7enxweb/cjw_newsletter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cjw_newsletter

CJW Newsletter for Exponential

CJW Newsletter is the newsletter system of Exponential. Newsletter editions are ordinary content (lists, editions and articles in the content tree), visitors subscribe to lists with a double opt-in, editions go out from the cron in the background, and bounces, the blacklist and the kernel's e-mail preferences keep the lists clean.

It is for site owners and editors who want to send newsletters from the same system as their web site, and for developers who need a newsletter they can theme, extend and run from the console.

What you get:

Requirements

Installation

1. Get the files

With Composer, from the root of your Exponential installation:

The legacy extension installer puts the files in extension/cjw_newsletter.

By hand: download a release from https://github.com/se7enxweb/cjw_newsletter/releases (or git clone https://github.com/se7enxweb/cjw_newsletter.git extension/cjw_newsletter) so that the files are in extension/cjw_newsletter. The folder must be called cjw_newsletter.

2. Activate the extension

In settings/override/site.ini.append.php:

If you use the website toolbar (ezwt), list cjw_newsletter before it.

3. Create the database tables

A new installation takes the schema of its database engine:

share/db_schema.dba holds the same schema in the kernel's database-independent format, for installers.

4. Regenerate the autoloads and clear the caches

5. Import the content classes and create the newsletter tree

The classes are in two packages, packages/cjw_newsletter_classes-1.0-1.ezpkg (root, system, list, edition, article) and packages/cjw_newsletter_list_virtual-1.0-1.ezpkg (virtual list). Either import them in the administration (Setup > Packages > Import new package), or let the class installer do it together with the section and a first newsletter tree. Save this as a script, for example cjw_newsletter_setup.php in the installation's root, and run it once with php bin/php/ezexec.php cjw_newsletter_setup.php:

Done by hand instead, the steps are: create a section "CJW Newsletter" with the navigation part "CJW Newsletter", create a cjw_newsletter_root object and assign it that section, set [NewsletterSettings] RootFolderNodeId to its node, and build the tree below it:

6. Configure sending and the cron

Set the sender and the transports (see Configuration), check that [SiteSettings] SiteURL of the siteaccess that renders the newsletter is the public host name (it makes the absolute links and image URLs of the mails), and add the cron jobs (see Cron jobs).

The Newsletter tab now shows in the administration's top menu. If one of your siteaccesses keeps its own menu.ini.append.php with a [TopAdminMenu] Tabs[] list, add Tabs[]=newsletter to it.

Configuration

The defaults are in extension/cjw_newsletter/settings/cjw_newsletter.ini, where every setting is explained. Put your changes in settings/override/cjw_newsletter.ini.append.php (or a siteaccess's settings folder). The settings most installations change:

TransportMethodCronjob is used for the editions the cron sends, TransportMethodPreview for test mails and TransportMethodDirectly for the subscribe and information mails. To try a whole installation without a mail server, set all three to file and read the mails in FileTransportMailDir.

The other blocks of cjw_newsletter.ini and the guide that explains them:

Blocks Guide
[NewsletterUserSettings], [NewsletterFilterSettings], [NewsletterCsvImportSettings], [ImportMappingSettings], [EznewsletterImportSettings] Import, export and migration
[DeliverabilitySettings], [ThrottleSettings], [TestSendSettings], [MailInSettings] Deliverability
[ScheduleSettings], [ArticlePoolSettings], [ApprovalSettings] Editorial
[PlaceholderSettings], [ConditionTagSettings], [InterestSettings], [LanguageSettings], [TextViewSettings], [Skin_*] Rendering
[TrackingSettings], [ABTestSettings], [StatisticsSettings] Statistics
[SmsSettings], [SmsTransport_*] SMS
[ExtensionPointSettings], [NotificationCardSettings], [DebugSettings] comments in cjw_newsletter.ini

What is on and off by default (tracking, SMS, rate limits and mail-in are off) is listed in doc/upgrade-4.2.md.

Usage

Send your first newsletter

  1. In the Newsletter tab, open your list (or create one below a newsletter system) and set its sender, skin and output formats (HTML, text).
  2. Create a Newsletter Edition below the list and add Newsletter Article objects below the edition.
  3. Open the edition and click Send. Send a test mail to yourself first, then schedule the send.
  4. The cron part cjw_newsletter_mailqueue_create creates one mail per subscriber, and cjw_newsletter_mailqueue_process sends them. The send page and the dashboard show the progress.

Select recipients with segments

A segment is a saved, rule-based selection of the approved subscribers of one list. Conditions, match mode, the consent and known-send rules for behavior conditions: doc/segments.md.

Segments are managed on two pages: /newsletter/segment_list/<list id> lists the segments of a list, and /newsletter/segment_edit/<id>/<list id> creates (id 0), edits, size-checks or removes one. Show size counts the members of the conditions as posted without saving; Remove the segment is refused while a send that is waiting or scheduled uses the segment. Both pages need the function newsletter/editorial; the sample of members in the size check is shown only to users who also have newsletter/subscription_list (doc/segments.md).

To send an edition to a segment, choose it in the Send to select of the send form; "Whole list" keeps the send unchanged. The members are evaluated when the send is queued. Other extensions can narrow the recipients of a send with the sendRecipients extension point (doc/segments.md).

Greet new subscribers with a welcome series

A series sends a fixed sequence of editions to new subscribers once their subscription is approved: doc/series.md. Edit it on the page newsletter/series_edit/<list object id> (steps, delays, audience, pause and resume, Send to me); the page needs the policy function editorial.

Let visitors subscribe

The public views are on any siteaccess:

URL Page
/newsletter/subscribe The subscribe form (a confirmation mail is sent: double opt-in)
/newsletter/configure/<user hash> Confirm, choose lists, change the details
/newsletter/unsubscribe/<hash> Unsubscribe from a list
/newsletter/archive/<send hash>/<format>/<subscription hash> The web version of a sent edition

Give the Anonymous role the functions newsletter/subscribe, newsletter/configure, newsletter/unsubscribe and newsletter/archive.

Template operators and fetch functions

The status of the subscription fetches is one of pending, confirmed, approved, removed, bounced or blacklisted. The module also has the fetch functions subscription_list, import_subscription_list, user_list (each with a _count twin), test_group_list, article_statistics, send_statistics, approval_state, edition_articles, list_article_pool, article_pool_list and schedule_list (modules/newsletter/function_definition.php). The rendering operators cjwnl_* are described in doc/rendering.md.

Your own skin

A skin is a folder of templates in your design. Copy design/standard/templates/newsletter/skin/default to your design, change it, and offer it in the settings:

Clear the template caches after adding templates. The skin is now offered when you edit a list.

Cron jobs

cjw_newsletter runs the parts cjw_newsletter_mailqueue_create and cjw_newsletter_mailqueue_process, which can also run on their own. A crontab that sends every five minutes:

The welcome series need no cron part of their own: the due steps are sent at the start of cjw_newsletter_mailqueue_create, and their mails go out in the next send run.

Console commands

Every command shows its options with --help; most have --dry-run.

Without ./console, run the scripts directly, for example php extension/cjw_newsletter/bin/php/status.php.

Permissions

The module newsletter has these policy functions (modules/newsletter/module.php):

Function Gives
admin Shows the admin menu of the newsletter
index The dashboard
subscribe, configure, unsubscribe, archive The public pages (for the Anonymous role)
preview, send, settings Previewing and sending editions, the settings view
subscription_list, subscription_view, subscription_list_csvimport, subscription_list_csvimport_import, subscription_list_csvexport Subscriptions, their import and export
user_list, user_view, user_create, user_edit, user_remove Newsletter users
mailbox_list, mailbox_edit, mailbox_item_list, mailbox_item_view Mail accounts and their messages (bounces)
blacklist_item The blacklist
import_list, import_view Past imports
deliverability Rate limits and batches, test groups, mail-in addresses, suppression import
editorial, approve Recurring sends, article pools, segment pages (list and edit), the welcome series page (series_edit), asking for and deciding approvals
rendering Interests, the skin preview
statistics, track Reports and A/B tests; the open pixel and click redirect
sms, sms_public The SMS send page; the SMS confirmation and the provider endpoint
import_export Import with a column mapping, subscriber export, migration log

settings/site.ini.append.php opens newsletter/o, newsletter/r, newsletter/sms_inbound and newsletter/sms_confirm to everybody (PolicyOmitList[]); each checks its own signature or secret. The Administrator role of a standard installation has newsletter/*.

Upgrading

Replace the files (or run composer update se7enxweb/cjw_newsletter), run the database updates of the releases in between from update/database/<engine>/, regenerate the autoloads and clear the caches. From 4.1, follow CHANGELOG.

Known limits

Troubleshooting

The 4.0 manual (doc/cjw_newsletter_documentation.pdf) still describes the content classes, lists, editions and sending in detail; doc/README.md lists all guides.

Contributing

Issues and pull requests are welcome at https://github.com/se7enxweb/cjw_newsletter. The tests are in tests/. A release lists the checksums of its files in share/filelist.md5.

License

GNU General Public License v2.0 or (at your option) any later version. See LICENSE.

Credits and history

CJW Newsletter was created in 2007 by the CJW Network (coolscreen.de, JAC Systeme and Webmanufaktur) for eZ Publish, the system Exponential grew out of. 7x maintains it for Exponential and added the 4.2 features.


All versions of cjw_newsletter with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
se7enxweb/ezpublish-legacy-installer Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package se7enxweb/cjw_newsletter contains the following files

Loading the files please wait ...