Download the PHP package mailersend/mailersend without Composer

On this page you can find all versions of the php package mailersend/mailersend. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mailersend

MailerSend PHP SDK

build badge analysis badge

Table of Contents

Installation

Requirements

Setup

This library, after version v0.22.0 is not compatible with Laravel 8.0 or lower. Please use older versions of SDK, or update your Laravel version.

This library is built atop of PSR-7 and PSR-18. You will need to install some implementations for those interfaces.

After that you can install the SDK.

Finally, add an environment variable called MAILERSEND_API_KEY with the appropriate API key.

Optionally, although not recommended, you can manually add the API key when instantiating the MailerSend class, like so:

Usage

Email

Send an email

HTML content is not required. You still can send an email with Text only.

Add CC, BCC recipients

Send an email with CC and BCC.

Send a template-based email

Advanced personalization

Send email with attachment

Send a scheduled message

Send email with precedence bulk header

Send an email with tracking

Send an email with custom headers

Bulk email API

Send bulk email

Get bulk email status

Inbound routing

Get a list of inbound routes

Get a single inbound route

Add an inbound route

Example using only classes:

Example using both classes and arrays:

Example using only arrays:

Update an inbound route

The examples on building the Inbound object portrayed in the 'Add an inbound route' also apply in here.

Delete an inbound route

Activity

Get a list of activities

Get a single activity

Analytics

Get activity data by date

Opens by country

Opens by user-agent

Opens by reading environment

Domains

Get a list of domains

Get domain

Add a domain

Delete domain

Get a list of recipients per domain

Update domain settings

Here you can set as many properties as you need, one or multiple.

Verify a domain

Get DNS records

Messages

Get a list of messages

Get info on a message

Scheduled Messages

Get a list of scheduled messages

Get a single scheduled message

Delete a scheduled message

Tokens

Get all tokens

Find a token

Create a token

Because of security reasons, we only allow access token appearance once during creation. In order to see the access token created you can do:

Change a token name

Update token

Delete Token

Recipients

Get a list of recipients

Get single recipient

Delete recipient

Add recipients to a suppression list

Blocklist

Hard Bounces

Spam Complaints

Unsubscribes

Delete recipients from a suppression list

Blocklist

Hard Bounces

Spam Complaints

Unsubscribes

On Hold List

Get recipients from a suppression list

Blocklist

Hard Bounces

Spam Complaints

Unsubscribes

On Hold List

Webhooks

Get a list of webhooks

Get webhook

Create webhook

Update webhook

Delete webhook

If, at the moment, some endpoint is not available, please use cURL and other available tools to access it. Refer to official API docs for more info.

Templates

Get a list of templates

Get a single template

Delete a template

Email Verification

Get all email verification lists

Get an email verification list

Create an email verification list

Verify an email list

Get email verification list results

SMS

Send SMS

Personalization

SMS phone numbers

Get a list of SMS phone numbers

Get an SMS phone number

Update a single SMS phone number

Delete an SMS phone number

SMS messages API

Get a list of SMS messages

Get an SMS message

SMS activity API

Get a list of SMS activities

SMS recipients API

Get a list of SMS recipients

Get an SMS recipient

Update a single SMS recipient

SMS webhooks API

Get a list of SMS webhooks

Get a single SMS webhook

Create a single SMS webhook

Update a single SMS webhook

SMS inbound routing API

Get a list of SMS inbound routes

Get a single SMS inbound route

Add an SMS inbound route

Update an inbound route

Delete an inbound route

Sender identities

Get a list of Sender Identities

Get a single Sender Identity

Get a single Sender Identity by email

Add a Sender Identity

Example using only classes:

Example using all options:

Update a Sender Identity

The examples on building the Sender Identity object portrayed in the 'Add a Sender Identity' also apply in here.

Update a Sender Identity by email

The examples on building the Sender Identity object portrayed in the 'Add a Sender Identity' also apply in here.

Delete a Sender Identity

Delete a Sender Identity by email

SMTP Users

Get a list of SMTP Users

Get a single SMTP User

Add SMTP User

Update SMTP User

The examples on building the SMTP User object portrayed in the 'Add SMTP User' also apply in here.

Delete SMTP User

Users

Get a list of Users

Get a single User

Add a User

Example using only classes:

Example using all options:

Update a User

The examples on building the User object portrayed in the 'Add a User' also apply in here.

Delete a User

<a name="get-a-list-of-invites>

Get a list of Invites

Get a single Invite

Resend an Invite

<a name="cancel-an-invite>

Cancel an Invite

Other endpoints

Get API quota

Debugging validation errors

Testing

Support and Feedback

In case you find any bugs, submit an issue directly here in GitHub.

You are welcome to create SDK for any other programming language.

If you have any troubles using our API or SDK free to contact our support by email [email protected]

The official documentation is at https://developers.mailersend.com

License

The MIT License (MIT)


All versions of mailersend with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
php Version ^7.4|^8.0
php-http/client-common Version ^2.2
php-http/discovery Version ^1.9
php-http/httplug Version ^2.1
psr/http-client-implementation Version ^1.0
psr/http-message Version ^1.0 || ^2.0
illuminate/collections Version ^8.0 || ^9.0 || ^10.0 || ^11.0
beberlei/assert Version ^3.2
symfony/options-resolver Version ^4.0.15 || ~4.1.9 || ^4.2.1 || ^5.0 || ^6.0 || ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mailersend/mailersend contains the following files

Loading the files please wait ....