Download the PHP package sreedev/laravel-mailchimp without Composer

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

laravel-mailchimp - MailChimp API V3

Super-simple, minimum abstraction MailChimp API v3 library for Laravel

Please refer MailChimp API docs to get to know more about the methods available

Requires PHP 7.2+

Build Status Scrutinizer Code Quality Code Intelligence Status Installation

You can install laravel-mailchimp using Composer:

You will then need to:

Examples

Start by use-ing the library by adding use

Then, list all the mailing lists (with a get on the lists method)

Subscribe someone to a list (with a post to the lists/{listID}/members method):

Update a list member with more information (using patch to update):

Remove a list member using the delete method:

Quickly test for a successful action with the success() method:

Batch Operations

The MailChimp Batch Operations this enables you to complete multiple operations with a single call. Eg: Adding thousands of members to a list - you can perform this in one request rather than thousands.

You need to set an ID for the operation as the first argument, and also that you won't get a response. The ID is used for finding the result of this request in the combined response from the batch operation.

Once you've finished all the requests that should be in the batch, you need to process it.

The result includes a batch ID. At a later point, you can check the status of your batch:

When your batch is finished, you can download the results (in JSON format) from the URL given in the response.

Troubleshooting

To get the last error returned by either the HTTP client or by the API, use getLastError():

For further debugging, you can inspect the headers and body of the response:

If you suspect you're sending data in the wrong format, you can look at what was sent to MailChimp by the wrapper:

If your server's CA root certificates are not up to date you may find that SSL verification fails and you don't get a response. The correction solution for this is not to disable SSL verification. The solution is to update your certificates.

Contributing

This is a simple wrapper, but contributions can make it beeter. If you'd like to suggest an improvement, please raise an issue to discuss it before making your pull request.

Pull requests for bugs are more than welcome - please explain the bug you're trying to fix in the message.


All versions of laravel-mailchimp with dependencies

PHP Build Version
Package Version
No informations.
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 sreedev/laravel-mailchimp contains the following files

Loading the files please wait ....