um-flint / mailman-api
A PHP package to manage users in mailman.
v1.0.1
2023-11-07 19:11 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ~6.0||~7.0
Requires (Dev)
- mockery/mockery: ^1.0
- phpunit/phpunit: ~9.0||~10.0
This package is not auto-updated.
Last update: 2024-12-18 00:02:23 UTC
README
Note: This API is incomplete. There are several things in the Mailman documentation that have not been implemented just because that were not needed.
If you would like to contribute to this API, submit a pull request to have your changes reviewed before they are merged into master.
Table of Contents
Methods
Mailman
- domains() : Domains
- lists() : Lists
- users() : Users
- members() : Members
Example to get all lists:
$allLists = $mailman->lists()->all(null, null, true);
Example to get lists for a user:
$usersLists = $mailman->members()->find(null, 'email_address');
Users
- all($count = null, $page = null)
- find($email)
- create($email, $displayName = null, $password = null)
- updateDisplayName($email, $displayName)
- updatePassword($email, $password)
- delete($email)
Lists
- all($count = null, $page = null, $advertised = null)
- find($name)
- members($name, $count = null, $page = null)
- create($name, $style = null)
- delete($domain)
Members
- all($count = null, $page = null)
- find($listId = null, $subscriber = null, $role = null)
- subscribe($listId, $subscriber, $displayName = null, $verified = false, $confirmed = false, $approved = false)
- unsubscribe($memberId)
Domains
- all($count, $page)
- find($domain)
- lists($domain, $count = null, $page = null, $advertised = null)
- create($domain, $description = null)
- delete($domain)