mrk-j / laposta
An easy way to work with the Laposta API
Installs: 7 214
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.4
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- mockery/mockery: ^1.4
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2025-03-13 00:42:43 UTC
README
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.