You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 16, 2021. It is now read-only.
### This library utilizes [GuzzlePHP](https://guzzlephp.org)
5
5
6
-
### Manual Installation
7
-
1. Download and extract the project into an appropriate place in your application.
8
-
2. Require the SDK's autoloader. (note: the path to include the autoload may be different depending on the structure of your application)
9
-
```
10
-
require '/src/Ctct/autoload.php'
11
-
```
12
-
13
-
### Installing via Composer
14
-
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
15
-
16
-
1. Add "constantcontact/constantcontact" as a dependency in your project's composer.json file.
6
+
## Installing via Composer
7
+
[Composer](https://getcomposer.org/) 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 add "constantcontact/constantcontact" as a dependency in your project's composer.json file.
17
8
```javascript
18
9
{
19
10
"require": {
20
-
"constantcontact/constantcontact":"1.3.*"
11
+
"constantcontact/constantcontact":"2.0.*"
21
12
}
22
13
}
23
14
```
24
15
25
-
2. Download and Install Composer.
26
-
```
27
-
curl -s "http://getcomposer.org/installer" | php
28
-
```
29
-
30
-
3. Install your dependencies by executing the following in your project root.
31
-
```
32
-
php composer.phar install
33
-
```
16
+
### Manual Installation
17
+
Manual installation is not recommended, as this library relies on other Composer libraries to function. Getting started with composer is easy!
34
18
35
-
4. Require Composer's autoloader.
36
-
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.
37
-
```
38
-
require 'vendor/autoload.php';
39
-
```
19
+
If you require manual installation, it is recommended that you use [version 1](https://github.com/constantcontact/php-sdk/tree/v1-master). Composer handles all of the dependencies that this library requires in version 2.
40
20
41
21
## Documentation
42
22
@@ -45,12 +25,20 @@ The source documentation is hosted at http://constantcontact.github.io/php-sdk
45
25
API Documentation is located at http://developer.constantcontact.com/docs/developer-guides/api-documentation-index.html
46
26
47
27
## Usage
48
-
Once either the composer or built in autoloader has been required, you can begin using the SDK.
28
+
The ConstantContact class contains the underlying services that hold the methods that use the API.
Use of this library requires PHP 5.3+, and PHP cURL extension (http://php.net/manual/en/book.curl.php)
42
+
Use of this library requires PHP 5.4+, and PHP cURL extension (http://php.net/manual/en/book.curl.php)
43
+
44
+
If you are being required to use an older version of PHP, it is highly recommended that you update to at least 5.4 - but you can use version 1.3.* via composer, or [manually](https://github.com/constantcontact/php-sdk/tree/v1-master).
0 commit comments