Download the PHP package madebyraygun/constant-contact without Composer

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

Constant Contact plugin for Craft CMS 3.x

Basic integration with Constant Contact API to allow you to add new contacts to your Constant Contact lists.

Requirements

This plugin requires Craft CMS 3.7.20 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

    cd /path/to/project
  2. Then tell Composer to load the plugin:

    composer require madebyraygun/constant-contact
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Constant Contact.

Configuring Constant Contact

Signup for Constant Contact API access at Mashery. From there you can generate your API key and get an authentication token. You can also get your list ID by visiting the API tester and intiate a GET request against the /lists endpoint.

Configure the plugin by creating a new config file named constant-contact.php in your config folder, and add the following the config parameters:

Example config file

Note: list should be a numerical ID.

Using Constant Contact

Create a new form in a front-end template, like so:

You can optionally override the default list by adding a hidden listid input

Example

Displaying flash messages

When a contact form is submitted, the plugin will set a notice or success flash message on the user session. You can display it in your template like this:

Ajax submitting

If the form is submitted with Ajax, the plugin will return a JSON object with the same keys as the template object described above.

Example:


All versions of constant-contact with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^3.7.20
guzzlehttp/guzzle Version ^6.5.5|^7.2.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 madebyraygun/constant-contact contains the following files

Loading the files please wait ....