https://github.com/wellcometrust/dotmailer-php
Explorify Dotmailer config
https://github.com/wellcometrust/dotmailer-php
Last synced: 6 months ago
JSON representation
Explorify Dotmailer config
- Host: GitHub
- URL: https://github.com/wellcometrust/dotmailer-php
- Owner: wellcometrust
- License: mit
- Created: 2018-04-09T12:17:16.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-30T12:06:06.000Z (almost 7 years ago)
- Last Synced: 2025-10-02T10:57:30.434Z (9 months ago)
- Language: PHP
- Size: 43.9 KB
- Stars: 6
- Watchers: 15
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Dotmailer REST API (v2) PHP client [](https://travis-ci.org/wellcometrust/dotmailer-php)
PHP client library for the Dotmailer REST API (v2) described at https://developer.dotmailer.com/docs/
Installation
---
`composer require wellcometrust/dotmailer-php`
Usage
---
```
getAddressBooks();
print_r($addressBooks);
```
If you are using Symfony, you may choose to configure the service as follows, and then use throughout your application:
```
# app/config/services.yml
Dotmailer\Adapter:
factory: ['Dotmailer\Adapter\GuzzleAdapter', fromCredentials]
arguments: ['%dotmailer_username%', '%dotmailer_password%', '%dotmailer_uri%']
Dotmailer\Dotmailer:
arguments: ['@Dotmailer\Adapter']
```
Coverage
---
Currently the following endpoints are covered:
- [ ] **Address books**
- [x] Get address books
- [ ] **Campaigns**
- [x] Get all campaigns
- [x] Get campaign
- [ ] **Contacts**
- [x] Create contact
- [x] Delete contact
- [x] Update contact
- [x] Add contact to address book
- [x] Delete contact from address book
- [x] Get contact by email
- [x] Get contact address books
- [x] Get unsubscribed contacts since date
- [x] Unsubscribe contact
- [x] Resubscribe contact
- [ ] **Contact data fields**
- [x] Create contact data field
- [x] Delete contact data field
- [ ] **Programs**
- [x] Get programs
- [x] Create program enrolment
- [ ] **Transactional email**
- [x] Send transactional email
- [x] Send transactional email using a triggered campaign