Download the PHP package mailjet/laravel-mailjet without Composer

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

# Laravel Mailjet **Fluent [Mailjet](https://www.mailjet.com/) API v3 integration & mail transport for Laravel.** Send transactional mail through the Laravel `Mail` facade, or talk to the full Mailjet REST API โ€” contacts, lists, campaigns, templates and webhooks โ€” with an expressive wrapper.
[![Latest Version](https://img.shields.io/packagist/v/mailjet/laravel-mailjet.svg?style=flat-square&label=packagist)](https://packagist.org/packages/mailjet/laravel-mailjet) [![Total Downloads](https://img.shields.io/packagist/dt/mailjet/laravel-mailjet.svg?style=flat-square)](https://packagist.org/packages/mailjet/laravel-mailjet) [![PHP Version](https://img.shields.io/packagist/php-v/mailjet/laravel-mailjet.svg?style=flat-square)](composer.json) [![Laravel](https://img.shields.io/badge/laravel-9.x%20โ€”%2013.x-FF2D20.svg?style=flat-square&logo=laravel)](https://laravel.com) [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE.md)

Table of contents


Features

Requirements

Package Supported versions
PHP 7.4 ยท 8.x
Laravel 9.x โ€“ 13.x
Symfony Mailer / Mailjet Mailer 6.x ยท 7.x ยท 8.x

Installation

That's it. Package auto-discovery wires up the MailjetServiceProvider and the Mailjet facade automatically.

Manual registration (only if auto-discovery is disabled)
**Laravel 11 and newer** โ€” `bootstrap/providers.php`: **Laravel 10 and older** โ€” `config/app.php`:

Configuration

Grab your API key and secret from the Mailjet account settings.

1. Add your credentials to .env:

2. Register the service in config/services.php:

Need to tune the API URL, version, or the transactional/common/v4 clients? See the full configuration reference.

Sending mail with the Mailjet transport

1. Select the transport in .env:

Laravel 6 and older use the MAIL_DRIVER key instead.

2. Declare the mailer in config/mail.php:

3. Send as usual โ€” no Mailjet-specific code required:

Make sure the from address is a verified Mailjet sender. More patterns (Mailjet templates, variables, custom headers) live in the examples guide.

Using the Mailjet API

Import the facade:

Low-level requests

Every call returns a Mailjet\Response, or throws a Mailjet\LaravelMailjet\Exception\MailjetException on an API error. Filter arguments are documented in the Mailjet API reference.

High-level helpers

Custom requests

Optional service providers

Each Mailjet resource has a focused, injectable manager. Register only the providers you use in config/app.php (or bootstrap/providers.php on Laravel 11+):

Service provider Manages Contract
Providers\ContactsServiceProvider Contacts, incl. deletion (API v4) ContactsV4Contract
Providers\ContactsListServiceProvider Contact lists ContactsListContract
Providers\ContactMetadataServiceProvider Contact properties / metadata ContactMetadataContract
Providers\CampaignServiceProvider Campaigns CampaignContract
Providers\CampaignDraftServiceProvider Campaign drafts CampaignDraftContract
Providers\TemplateServiceProvider Templates TemplateServiceContract
Providers\EventCallbackUrlServiceProvider Event (webhook) callback URLs EventCallbackUrlContract

Then resolve the manager wherever you need it:

Sandbox mode

With MAILJET_SANDBOX=true, Mailjet validates the request and returns a successful response without delivering any email โ€” ideal for staging environments and automated tests.

Details in the configuration reference.

Documentation

Resource Link
Configuration reference docs/configuration.md
Examples (campaigns, templates, Mailables) docs/usage.md
Full docs site https://mailjet.github.io/laravel-mailjet/
Mailjet API v3 https://dev.mailjet.com/
PHP API client https://github.com/mailjet/mailjet-apiv3-php

Testing

Contributing

Issues and pull requests are welcome โ€” see CONTRIBUTING.md.

License

Released under the MIT License.


All versions of laravel-mailjet with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
laravel/framework Version ^9.0|^10.0|^11.0|^12.0|^13.0
mailjet/mailjet-apiv3-php Version ^1.5.6|^1.5
symfony/http-client Version ^6.0|^7.1|^8.0
symfony/mailjet-mailer Version ^6.0|^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 mailjet/laravel-mailjet contains the following files

Loading the files please wait ...