Skip to content

baumrock/RockLite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

About

ProcessWire MailerLite Integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages