2017 © Pedro Peláez
 

library mailmanapi

A simple API to work with Mailman 2.x Mailing Lists

image

splattner/mailmanapi

A simple API to work with Mailman 2.x Mailing Lists

  • Friday, October 20, 2017
  • by splattner
  • Repository
  • 1 Watchers
  • 0 Stars
  • 121 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 13 % Grown

The README.md

mailmanAPI

A Simple PHP API to work with Mailman 2.x Mailinglists, (*1)

As Mailman 2.x seems not to offer a proper API, this Mailman API provides some basic functionality to work with Mailman. Be aware, the library only wrappes around the HTML Forms of the Mailman API Site. It parses the HTTP Responses & HTML Pages, for Authentication Cookies, CSRF TOKEN and then posts to the FORM action url., (*2)

Testes with Mailman 2.1.20, no guarantee to work with other versions., (*3)

Features

  • Get all Members of a Maillist
  • Add Members to a Maillist
  • Remove Members from a Maillist
  • Change Address of a Member

Requirements

  • Socket enabled or curl extension installed
  • PHP 5.3+

Installation

composer require splattner/mailmanapi:^1.2

Usage

You need the URL for your Mailman Mailist e.g. http://{{domain}}/mailman/admin/{{maillistName}} and your Administration Password for the Maillist., (*4)

Get All Members

$mailman = new MailmanAPI($mailManBaseURL,$adminPW);
$allMembers = $mailman->getMemberlist();

Add Members

$mailman = new MailmanAPI($mailManBaseURL,$adminPW);
$mailman->addMembers(["member1@domain.com","member2@domain.com"]);

Remove Members

$mailman = new MailmanAPI($mailManBaseURL,$adminPW);
$mailman->removeMembers(["member1@domain.com","member2@domain.com"]);

Change Member

$mailman = new MailmanAPI($mailManBaseURL,$adminPW);
$mailman->changeMember("memberold@domain.com","membernew@domain.com");

The Versions

20/10 2017

dev-master

9999999-dev https://github.com/splattner/mailmanAPI

A simple API to work with Mailman 2.x Mailing Lists

  Sources   Download

MIT

The Requires

 

by Sebastian Plattner

20/10 2017

1.0.2

1.0.2.0 https://github.com/splattner/mailmanAPI

A simple API to work with Mailman 2.x Mailing Lists

  Sources   Download

MIT

The Requires

 

by Sebastian Plattner

20/10 2017

1.0.1

1.0.1.0 https://github.com/splattner/mailmanAPI

A simple API to work with Mailman 2.x Mailing Lists

  Sources   Download

MIT

The Requires

 

by Sebastian Plattner

19/10 2017

1.0.0

1.0.0.0 https://github.com/splattner/mailmanAPI

A simple API to work with Mailman 2.x Mailing Lists

  Sources   Download

MIT

The Requires

 

by Sebastian Plattner