Download the PHP package beziworld/laravel-getresponse without Composer
On this page you can find all versions of the php package beziworld/laravel-getresponse. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download beziworld/laravel-getresponse
More information about beziworld/laravel-getresponse
Files in beziworld/laravel-getresponse
Package laravel-getresponse
Short Description Laravel integration for GetResponse API v3: contacts with custom fields and tags, campaigns, newsletters, autoresponders, transactional e-mails, webhooks and callbacks as events, rate limits, MAX and multiple accounts.
License MIT
Homepage https://github.com/beziworld/laravel-getresponse
Informations about the package laravel-getresponse
Laravel GetResponse
Laravel integration for the GetResponse API v3: contacts with custom fields and tags, a subscribe helper and an Eloquent sync trait, campaigns (lists), autoresponders, newsletters, transactional e-mails, webhooks and legacy callbacks as Laravel events, rate limit handling, GetResponse MAX and multiple accounts.
Polska wersja dokumentacji
Features
- Contacts: list with filters and pagination (
LazyCollectionover every page), find by e-mail, create (single and batch), update, delete, tags and custom fields upsert, activities. subscribe()helper: add or update a subscriber by e-mail with custom fields and tags given by name (missing tags are created, existing tags and fields are kept);unsubscribe().SyncsWithGetResponsetrait for Eloquent models, explicit or automatic (after save and delete).- Campaigns (lists), tags, custom fields, "From" addresses, autoresponders (read), newsletters (list, read, create, cancel, statistics).
- Transactional e-mails (add-on):
TransactionalEmailbuilder (direct content or template with lexpad, cc, bcc, attachments), list, details and statistics. - Webhooks route (single events and batches) with
ContactSubscribed,ContactUnsubscribed,ContactBounced,ContactRejected,MessageOpened,LinkClicked,ContactCustomFieldChanged,ContactEmailChangedandWebhookEventReceived; legacy callbacks route withCallbackReceived; callbacks configuration through the API. - Rate limits:
X-RateLimit-*headers exposed after every call, 429 handled withtimeToReset, reads retried, writes never. - API key or OAuth 2.0 token, GetResponse MAX (US and PL hosts,
X-Domain),X-Parent-Login,X-Time-Zone. - Multiple accounts as named connections plus runtime credentials for multi-tenant apps.
- No SDK dependency: Laravel HTTP client, so
Http::fake()works. PHP 8.3+, Laravel 12 and 13, PHPStan level 8.
Why this package
| Package | Status (Packagist, November 2026) |
|---|---|
getresponse/sdk-php-client (1.07M downloads) |
Official generic SDK for API v3, release 2.0.1 from 2023, no Laravel integration, no webhooks |
dangermark/laravel-getresponse (18k) |
0.1 from 2019 (last push 2020), Laravel 5 only, thin v3 wrapper returning raw objects |
baorv/l5-getresponse (10.7k) |
v1.0.0 from 2019, Laravel 5 only |
None of them supports current Laravel versions, webhooks, callbacks, rate limit handling, MAX headers or multiple accounts. This package adds typed responses, a subscriber sync workflow, events for every webhook type and safe retry rules.
Installation
php artisan getresponse:status checks the credentials and prints the remaining API quota.
Contacts and subscribers
Filters are passed as query[...]; sort, fields and additionalFlags are sent as they are, dates are formatted
as ISO 8601.
Eloquent sync
Override getResponseEmail(), getResponseName(), getResponseCampaignId() and getResponseConnection() when needed.
With GETRESPONSE_SYNC_AUTO=true models sync after every save and are removed after delete; failures are reported,
not thrown.
Campaigns, tags, custom fields
Autoresponders and newsletters
Transactional e-mails
Requires the Transactional Emails add-on. The sender is a verified "From" address (GetResponse::fromFields()).
Up to 8 recipients (to, cc and bcc) per message.
Webhooks and callbacks
-
Enable the routes and set a secret:
Route Name Purpose POST /getresponse/webhookgetresponse.webhookWebhooks (single events or batches) GET\|POST /getresponse/callbackgetresponse.callbackLegacy callbacks -
In GetResponse (Tools, Webhooks) create a webhook with the URL
https://your-app.com/getresponse/webhook?secret=long-random-string. GetResponse does not sign webhooks; its documentation recommends this secret query parameter, which the middleware compares in constant time with the secret of every connection. Callbacks can be enabled through the API: - Listen to the events:
WebhookEvent exposes type (WebhookEventType), contactId, email, name, campaignId, campaignName,
accountId, messageId, messageSubject, linkUrl, reason, occurredAt and the raw payload. The response is
always {"status": "OK"}, without which GetResponse retries; it waits 5 seconds, so queue slow listeners. Callbacks
(4 second timeout, never repeated) dispatch CallbackReceived with the documented parameters.
Rate limits and retries
The API allows 30 000 calls per 10 minutes and 80 per second. Reads are retried on connection errors and HTTP 5xx and,
after HTTP 429, once the frame resets when that happens within GETRESPONSE_MAX_RETRY_AFTER seconds (default 60).
Writes are never retried automatically; a rejected write throws ApiException with retryAfter().
Multiple accounts and GetResponse MAX
Error handling
All exceptions extend Beziworld\GetResponse\Exceptions\GetResponseException:
| Exception | When |
|---|---|
ApiException |
GetResponse rejected the request (errorCode() such as 1008, 1014, 1015, httpStatus(), codeDescription(), context(), uuid(), moreInfo(), retryAfter(), isRateLimited(), isDuplicate(), isNotFound(), isAuthenticationError()) or could not be reached |
InvalidMessage |
transactional e-mail without sender, recipient, subject or content, too many recipients, unknown custom field name |
InvalidConfiguration |
missing credentials, unknown environment, MAX without domain, missing campaign, unknown connection |
Testing your application
Development
Author
Created and maintained by Kamil Ćwiertnia, beziworld.eu.
- E-mail: [email protected]
- Issues and feature requests: GitHub issues
- Security vulnerabilities: see SECURITY.md
Need an integration? Get in touch through beziworld.eu.
License
MIT. See LICENSE.md. This package is not affiliated with, endorsed by or sponsored by GetResponse S.A. "GetResponse" is a trademark of its owner.
All versions of laravel-getresponse with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.8
illuminate/console Version ^12.0|^13.0
illuminate/contracts Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/events Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/routing Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0