Download the PHP package prspace/mailjet without Composer

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

Laravel 4 Mailjet Integration

This package extends the Laravel 4 MailService to enable Mailjet integration, based on Mailjet API v3.

Installation

Firstly you want to include this package in your composer.json file.

Now you'll want to update or install via composer.

Next you open up app/config/app.php and replace the MailServiceProvider with

NOTE It is very important that you replace the default service providers to avoid conflicts. You don't lose any original functionality regarding mail drivers, they are still available.

Configuration is pretty easy: add the following entry to your config/services.php:

And replace the values with your respective api key and secret key.

Next, change the mail driver in your config/mail.php or your .env file to 'mailjet', and make sure you have a valid and authorised from-address configured.

That's all and you're good to go. For usage, check the Laravel 4 mail documentation

API access

I have also integrated direct access to Mailtjet's API, based on their example code.

To install, append the aliases in config/app.php with

Examples

Based on https://github.com/mailjet/mailjet-apiv3-php-simple/blob/master/README.md

SendAPI

Account Settings

Contact Lists

Note : You can use unique fields of resources instead of IDs, like in your array for this example

Note : You can use unique fields of resources instead of IDs, like in your array for this example

Newsletters

You can use the action to manage the content of a newsletter, in Text and Html. It has two properties : and . You can use , , and both requests on this action :

Example with a on :

Use the action to send a newsletter later. You just need to perform a request to schedule a new sending and to fill the property with a Timestamp format in ISO 8601 : http://www.iso.org/iso/home/standards/iso8601.htm You can also a schedule Here is an example :

To send a newsletter immediately, you have two possibilities :

You can also test a newsletter by sending it to some specified recipients before making the real sending. To do so, you have to perform a request on a newsletter with action like in the following example :


All versions of mailjet with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
guzzlehttp/guzzle Version 5.0.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 prspace/mailjet contains the following files

Loading the files please wait ....