Download the PHP package thedoctor0/laravel-mailjet-driver without Composer

On this page you can find all versions of the php package thedoctor0/laravel-mailjet-driver. 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 laravel-mailjet-driver

Laravel Mailjet Driver

Tests Packagist Packagist License

A Laravel mail driver for Mailjet that also wraps the Mailjet API v3 PHP SDK — so you can send mail through Laravel's Mail facade and reach Mailjet's REST, Send and SMS APIs from the same package.

Version support

Package Laravel PHP
2.x 11.x – 13.x 8.2+
1.x 9.x – 10.x 8.0+

Installation

The package registers itself automatically via Laravel's package discovery.

Configuration

Grab your API key and secret from the Mailjet API keys page, then add them to your .env file and switch the mailer:

Add the credentials to config/services.php:

Register the transport in config/mail.php:

Note: the from address in config/mail.php must be an authorised sender configured on your Mailjet account. Manage your senders and domains here.

Optional client configuration

You can pass full MailjetClient options through config/services.php:

Key Used for
transactional The Send API client
common The client resolved behind the Mailjet facade
v4 The v4 client used by some data providers (e.g. the SMS API)

Sending mail

Once the transport is configured, send mail the usual Laravel way — no Mailjet-specific code required:

API wrapper usage

Import the facade to talk to the Mailjet API directly:

Send API

Send transactional email through the Send API v3.1 (the default version):

SMS API

Send an SMS through the SMS API v4. The SMS API authenticates with a bearer token rather than the key/secret pair — see the Mailjet docs for issuing one:

Contacts and lists

High-level helpers for the most common contact-management calls:

Low-level API

For any endpoint without a dedicated helper, call the raw verbs with a Mailjet resource:

Every wrapper method returns a Mailjet\Response, or throws a Mailjet\LaravelMailjet\Exception\MailjetException on an API error. You can also reach the underlying SDK client with Mailjet::getClient() to build fully custom requests.

For the complete endpoint reference, see the official Mailjet API documentation.

Testing

License

The MIT License (MIT). Please see the license file for more information.


All versions of laravel-mailjet-driver with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^11.0|^12.0|^13.0
mailjet/mailjet-apiv3-php Version ^1.6
symfony/mailjet-mailer Version ^7.0|^8.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 thedoctor0/laravel-mailjet-driver contains the following files

Loading the files please wait ...