Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Rest Api Laravel Package

sendpulse/rest-api

Official PHP client for the SendPulse REST API, supporting API key and OAuth auth. Manage bulk email campaigns, transactional SMTP, SMS, CRM contacts and chatbots through a typed, ergonomic service layer with optional PSR-18 and PSR-16 adapters. Requires PHP 8.3+ and ext-curl/ext-json.

View on GitHub
Deep Wiki
Context7
3.0.1
3.0.0

BC Breaks

  • Entry point changed — use new Sendpulse\RestApi\Client(apiKey: '...') instead of the old ApiClient class.
  • Authentication — OAuth (clientId + clientSecret) and API key (apiKey) are now named constructor arguments; the old positional (API_USER_ID, API_SECRET, $storage) signature is gone.
  • Service layer — raw get()/post()/put()/patch()/delete() calls replaced by typed facades (emailService(), smtpService(), etc.).
  • Exceptions — ApiClientException replaced by a typed hierarchy: AuthException, RateLimitException, ApiException, NetworkException, ProtocolException.
  • PHP 8.3+ required (was 7.1+).
  • Storage — FileStorage/SessionStorage/MemcachedStorage removed; use FileTokenStorage, InMemoryTokenStorage, or bring your own via TokenStorage interface.

Added

  • Typed service facades: emailService(), smtpService(), smsService(), crmService(), chatbotService().
  • Services and models generated from OpenAPI specs — all endpoints covered.
  • TokenStorage interface with FileTokenStorage (atomic, flock-based) and InMemoryTokenStorage.
  • Optional PSR-16 adapter (Psr16TokenStorage) and PSR-18 HTTP adapter (Http\Adapter\Psr18Adapter).
  • Auto-retry on 401 — cached token is invalidated and a fresh one is fetched before retrying once.
  • PHPStan level max compliance.
2.0.1.2
2.0.1.1
2.0.1

Add usage example

2.0
1.0.27
1.0.26
1.0.25
1.0.24
1.0.23

fixed resend SMTP

1.0.22
1.0.21
1.0.20
1.0.19

add new @param string $sendDate for createCampaing()

1.0.18

Add re-try for SMTP send method

1.0.17

Fix issue with sendRequest

1.0.16

Authentication fix

1.0.15

Add response headers for debugging purposes

1.0.14

Refactor smtpSendMail

1.0.13

Add removing from file storage

1.0.12

SMTP: list unsubscribed emails

1.0.11

Method for changing email variables

1.0.10

Fix smtpListEmails method to include required 'country' parameter

1.0.9
1.0.8
  • listSMSSenders()
  • pushgetWebsiteInfo()
  • getEmailsGlobalInfo()
1.0.7
1.0.6
1.0.3
1.0.2
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels