Download the PHP package inmobile/inmobile-sdk without Composer
On this page you can find all versions of the php package inmobile/inmobile-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download inmobile/inmobile-sdk
More information about inmobile/inmobile-sdk
Files in inmobile/inmobile-sdk
Package inmobile-sdk
Short Description The official PHP libary for interaction with the InMobile API
License BSD-3-Clause
Informations about the package inmobile-sdk
Inmobile PHP SDK for v4
Requirements
- PHP 7.4, 8.0, 8.1, 8.2 or 8.3.
Getting started
The latest version of the client can be found on packagist here
composer require inmobile/inmobile-sdk
- Initialize the
InmobileApi
class and start sending messages!
Each endpoint is split into a different class.
So the messages API would be accessed by calling ->messages()
, lists API by calling ->lists()
and so on.
Example:
You can find the full API documentation here: https://api.inmobile.com/docs/
Endpoints
The SDK is split up into different classes for each "endpoint" in the InMobile API.
Messages
This can be accessed by calling ->messages()
on InmobileApi
. Below you will find an example of all the actions.
Send message
Send one or more messages.
Send a message using a template
Send message using query
Send one message using query parameters.
Get status reports
Get all SMS reports
Cancel messages
Cancel one or multiple messages by their ID
Lists
This can be accessed by calling ->lists()
on InmobileApi
. Below you will find an example of all the actions.
Get all
Fetch all lists. This automatically runs through every page and returns an array of all lists.
Find
Find a list by its ID
Create
Create a new list
Update
Update a list with a new name
Delete
Delete a list by its ID
Blacklist
This can be accessed by calling ->blacklist()
on InmobileApi
. Below you will find an example of all the actions.
Get
Fetch a paginated list of all entries in your blacklist
Get all
Fetch all entries in a blacklist. This automatically runs through every page and returns an array of all entries.
Find by ID
Find an entry by ID
Find by phone number
Find an entry by phone number
Create
Create a new entry in the blacklist
Delete by ID
Delete an entry by ID
Delete by phone number
Delete an entry by phone number
Recipients
This can be accessed by calling ->recipients()
on InmobileApi
. Below you will find an example of all the actions.
Get
Get a paginated response of all recipients in a list
Get all
Fetch all recipients on a list. This automatically runs through every page and returns an array of all recipients.
Find by ID
Find a recipient by ID
Find by phone number
Find a recipient by phone number
Create
Create a recipient on a list
Update
Update a recipient on a list
Create or update
Create or update a recipient on a list if it doesn't exist.
Delete by ID
Delete a recipient by ID
Delete by phone number
Delete a recipient by phone number
Delete all recipients on a list
This deletes all recipients on the given list
GDPR
Create information deletion request
Tools
Parse phone numbers
Templates
Get all
Fetch all templates. This automatically runs through every page and returns an array of all templates.
Find
Find a template by its ID
Emails
Send email
Send an email to one or more recipients with the specified subject and text / html body.
Send email using template
Send an email to one or more recipients using a template.
Get email events
Get a paginated list of email events.
Email templates
Get all
Fetch all email templates. This automatically runs through every page and returns an array of all templates.
Find
Find an email template by its ID
All versions of inmobile-sdk with dependencies
ext-curl Version *
ext-json Version *