RockLite

MailerLite Integration

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();
}

More modules by bernhard

  • RockFinder

    Highly Efficient and Flexible SQL Finder Module
  • RockMigrations

    The Ultimate Automation and Deployment-Tool for ProcessWire
  • RockFrontend

    Module for easy frontend development
  • RockFinder3

    Combine the power of ProcessWire selectors and SQL.
  • RockLESS

    Module to parse LESS files via PHP.
  • Template Preview Images

    Show Preview Images for selectable Templates
  • RockMigrations1

    Module to handle Migrations inside your Modules easily.
  • RockHeadlineIDs

    Demo Textformatter
  • RockLite

    MailerLite Integration

All modules by bernhard

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