Skip to content

ameagher/php-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Constant Contact PHP SDK

Build Status

Installation

Manual Installation

  1. Download and extract the project into an appropriate place in your application.
  2. Require the SDK's autoloader. (note: the path to include the autoload may be different depending on the structure of your application)
require '/src/Ctct/autoload.php'

Installing via Composer

Composer is a dependency management tool for PHP that allows you to declare the dependencies your project needs and installs them into your project. In order to use the Constant Contact PHP SDK through composer, you must do the following

  1. Add "constantcontact/constantcontact" as a dependency in your project's composer.json file.
 {
        "require": {
            "constantcontact/constantcontact": "1.1.*"
        }
    }
  1. Download and Install Composer.
curl -s "http://getcomposer.org/installer" | php
  1. Install your dependencies by executing the following in your project root.
php composer.phar install
  1. Require Composer's autoloader. Composer also prepares an autoload file that's capable of autoloading all of the classes in any of the libraries that it downloads. To use it, just add the following line to your code's bootstrap process.
require 'vendor/autoload.php';

Usage

Once either the composer or built in autoloader has been required, you can begin using the SDK.

use Ctct\ConstantContact;
$cc = new ConstantContact('your api key');

$contacts = $cc->getContacts('your access token')

Minimum Requirements

Use of this library requires PHP 5.3+, and PHP cURL extension (http://php.net/manual/en/book.curl.php)

About

Constant Contact PHP SDK for v2 API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 65.6%
  • JavaScript 32.2%
  • CSS 2.2%