PHPackages                             liogi/surveymonkey-api-v3 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. liogi/surveymonkey-api-v3

ActiveLibrary

liogi/surveymonkey-api-v3
=========================

PHP class for SurveyMonkey API.

1.0.0(9y ago)7436↓100%5[5 PRs](https://github.com/liogi/surveymonkey-api-v3/pulls)PHPPHP &gt;=5.1

Since Nov 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/liogi/surveymonkey-api-v3)[ Packagist](https://packagist.org/packages/liogi/surveymonkey-api-v3)[ Docs](https://github.com/liogi/surveymonkey-api-v3)[ RSS](/packages/liogi-surveymonkey-api-v3/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

PHP class for SurveyMonkey API.
===============================

[](#php-class-for-surveymonkey-api)

Basic usage
-----------

[](#basic-usage)

```
$SM = new SurveyMonkey("myApiKey" , "myAccessToken");
$result = $SM->getSurveyList();
if ($result["success"]) print_r( $result["data"] );
else print_r($result["message"]);   // Print out the error message

```

All methods return an array containing a **success** boolean, and the **data** -or- an error **message**

Advanced
--------

[](#advanced)

```
$SM = new SurveyMonkey("myApiKey" , "myAccessToken",
    array(  // Override default API options (quite useless at the moment)
        'protocol' => 'http',                       // will not work.. they require SSL
        'hostname' => 'fake-api.surveymonkey.net'   // will also not work..
    ),
    array(  // CURL override options
        CURLOPT_SSL_VERIFYPEER => false     // Better add cacert.pam, no?
        // ......
    )
);
$result = $SM->getSurveyList(array(
    "fields" => array(
        "title",
        "page",
        "start_modified_at",
        "end_modified_at",
        "sort_by"
    ),
));

```

All methods
-----------

[](#all-methods)

**getSurveyList**

```
/**
 * Returns a list of surveys owned or shared with the authenticated user
 * @see https://developer.surveymonkey.com/api/v3/#surveys
 * @param array $params optional request array
 * @return array Result
 */
public function getSurveyList($params = array()){}

```

**getSurveyDetails**

```
/**
 * Retrieve a given survey's metadata.
 * @see https://developer.surveymonkey.com/api/v3/#surveys-id-collectors
 * @param string $surveyId Survey ID
 * @param array $params optional request array
 * @return array Results
 */
public function getSurveyDetails($surveyId, $params = array()){}

```

**getCollectorList**

```
/**
 * Retrieves a paged list of collectors for a survey in a user's account.
 * @see https://developer.surveymonkey.com/api/v3/#collectors-id
 * @param string $surveyId Survey ID
 * @param array $params optional request array
 * @return array Results
 */
public function getCollectorList($surveyId, $params = array()){}

```

**getRespondentList**

```
/**
 * Retrieves a paged list of respondents for a given survey and optionally collector
 * @see https://developer.surveymonkey.com/api/v3/#surveys-id-responses-bulk
 * @param string $surveyId Survey ID
 * @param array $params optional request array
 * @return array Results
 */
public function getRespondentList($surveyId, $params = array()){}

```

**getResponses**

```
/**
 * Takes a list of respondent and returns the responses that correlate to them.
 * @param string $surveyId Survey ID
 * @param array $params optional request array
 * @return array Results
 */
public function getResponses($surveyId, $params = []){}

```

**createCollector**

```
/**
* Retrieves a paged list of templates provided by survey monkey.
* @see https://developer.surveymonkey.com/api/v3/#surveys-id-collectors
* @param string $surveyId Survey ID
* @param string $collectorName optional Collector Name - defaults to 'New Link'
* @param string $collectorType required Collector Type - only 'weblink' currently supported
* @param array $params optional request array
* @return array Results
*/
public function createCollector($surveyId, $collectorName = null, $collectorType = 'weblink'){}

```

**createFlow**

```
/**
 * Create a survey, email collector and email message based on a template or existing survey.
 * @see https://developer.surveymonkey.com/api/v3/#surveys
 * @param string $surveyTitle Survey Title
 * @param string $from_survey_id Existing survey
 * @param array $params optional request array
 * @return array Results
 */
public function createFlow($surveyTitle, $from_survey_id, $params = array()){}

```

**updateSurvey**

```
/**
 * Modifies a survey’s title, nickname or language.
 * @see https://developer.surveymonkey.net/api/v3/#surveys
 * @param string $surveyID Survey ID
 * @param array $params optional request array
 * @return array Results
 */
public function updateSurvey($surveyID, $params = array()){}

```

API version
-----------

[](#api-version)

v3

Tests
-----

[](#tests)

*TODO*

License
-------

[](#license)

**No** rights reserved.
*Do whatever you want with it, It's free*

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3473d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8de5a0473dbcfe76e2e252779fe5687436c3016a7c52fd320e0b83dfcf77a966?d=identicon)[liogi](/maintainers/liogi)

---

Top Contributors

[![liogi](https://avatars.githubusercontent.com/u/9954110?v=4)](https://github.com/liogi "liogi (6 commits)")

---

Tags

php

### Embed Badge

![Health badge](/badges/liogi-surveymonkey-api-v3/health.svg)

```
[![Health](https://phpackages.com/badges/liogi-surveymonkey-api-v3/health.svg)](https://phpackages.com/packages/liogi-surveymonkey-api-v3)
```

###  Alternatives

[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
