Skip to content

mrk-j/laposta

Repository files navigation

An easy way to work with the Laposta API

Latest Version on Packagist Build Status Quality Score StyleCI Total Downloads

This package provides an easy way to talk to the Laposta API. Laposta is a Dutch platform to send newsletters.

The current version of the package provides support to manage lists and members.

For more information regarding the Laposta API you can visit their documentation.

Installation

You can install the package via composer:

composer require mrk-j/laposta

Usage

/* Create new Laposta instance */
$laposta = new Mrkj\Laposta\Laposta('{YOUR API KEY}');

/* Create new list */
$list = $laposta->createList('New list');

/* Update list */
$list->name = 'Updated list';
$laposta->updateList($list);

/* Delete list */
$laposta->deleteList($list);

/* Create new member */
$member = $laposta->createMember($list->id, 'foo@example.com');

/* Update member */
$member->email = 'bar@example.com';
$laposta->updateMember($member);

/* Delete member */
$laposta->deleteMember($member);

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email github@markj.nl instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

An easy way to work with the Laposta API

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages