Download the PHP package mattstein/unsend-php without Composer

On this page you can find all versions of the php package mattstein/unsend-php. 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 unsend-php

Unsend PHP Library

An unofficial SDK for Unsend.

Unsend + PHP

On non-2xx responses, methods throw \Unsend\Exceptions\ApiException with parsed message and status code.

Installation & Usage

Install via Composer:

Create a client instance with your API key and specify your Unsend domain if you self host:

You can then use any of the included methods to interact with the API, where getData() provides decoded response data and getResponseObject() provides the entire Guzzle response:

Methods

Available methods follow the API Reference.

getEmail(string $emailId)

Returns a single email record by ID.

listEmails(array $parameters = [])

Returns an array of email records, optionally filtered by parameters.

iterateEmails(array $parameters = [])

Lazy iterator for listEmails() that continues through pagination instead of returning pagination metadata.

sendEmail(array $parameters)

Sends an email.

batchEmail(array $parameters)

Sends up to 100 emails in one request.

updateSchedule(string $emailId, string $scheduledAt)

Updates the targeted send time for a scheduled email.

cancelSchedule(string $emailId)

Cancels a scheduled email.

getContact(string $contactBookId, string $contactId)

Returns a single contact record.

getContacts(string $contactBookId, array $parameters = [])

Returns an array of contact records, optionally filtered by parameters.

createContact(string $contactBookId, array $parameters)

Creates a contact record.

updateContact(string $contactBookId, string $contactId, array $parameters = [])

Updates a contact record.

upsertContact(string $contactBookId, string $contactId, array $parameters = [])

Upserts a contact record.

deleteContact(string $contactBookId, string $contactId)

Deletes a contact record.

getDomain(int $id)

Returns a single domain record.

getDomains()

Returns an array of domain records.

createDomain(array $parameters)

Creates a domain record.

verifyDomain(int $id)

Attempts to verify a domain.


All versions of unsend-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1.0
guzzlehttp/guzzle Version ^7.5
ext-json Version *
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 mattstein/unsend-php contains the following files

Loading the files please wait ...