MailerLite Integration

RockLite

ProcessWire MailerLite Integration

Usage


// RockForms example
public function processInput()
{
  $values = $this->getValues();

  /** @var RockLite $lite */
  $lite = $this->wire->modules->get('RockLite');
  $result = $lite->api()->subscribe(
    mail: $values->mail,
    groups: ['1234'], // your group id
  );
  // bd($result);

  $m = new WireMail();
  $m->from('robot@baumrock.com');
  $m->to('office@baumrock.com');
  $m->subject("New signup: {$values->mail}");
  $m->body(print_r($result, true));
  $m->send();
}

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

“We chose ProcessWire because of its excellent architecture, modular extensibility and the internal API. The CMS offers the necessary flexibility and performance for such a complex website like superbude.de. ProcessWire offers options that are only available for larger systems, such as Drupal, and allows a much slimmer development process.” —xport communication GmbH