Download the PHP package director-moav/the-kof-client without Composer
On this page you can find all versions of the php package director-moav/the-kof-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download director-moav/the-kof-client
More information about director-moav/the-kof-client
Files in director-moav/the-kof-client
Package the-kof-client
Short Description TheKofClient is a PHP client for SurveyMonkey API. Written to be intuitvly used.
License
Informations about the package the-kof-client
Stable release v1.0.1 is out
TheKofClient
A PHP client for Survey Monkey API V3 https://developer.surveymonkey.com/api/v3/
Project started 7/11/2017
Comments, Patches and Support requests can be sent here, at github.
Current Version: 0.01
Table of Contents
-
Installing and Configuring
- Dependencies
- Installation
- Quick introduction to the API
- Intro
- Survey
- Collectors
- Responses
- Classes and Methods
- Examples
Installing and Configuring
Dependencies
-
TheKofClient uses Zend Framework > 2.x HTTP client to communicate with SurveyMonkey servers.
Later versions of this client might support a more generic way to communicate. -
While TheKofClient is part of the TalisMS library, It is so in name only. It follows the same naming convetions. But, it is a stand alone project.
-
An account at SurveyMonkey with permissions to build apps.
-
An app defined on SurveyMonkey with the permissions you need it to have (I suggest familiarizing yourself with SurveyMonkey APP and API usage before using this client).
- Access Token, which is copied from your app setting screen, and looks something like this
P4BCgR2bIBdtj10AKrCX9sVRx.DHaoYcMgKFMAROePyn.IxS5H8Bovv4pj98M3N0xvIKVxW00o12at-mSgIzGiRR3TSPcVks4TBHp3nCxyd9Kv6Z9OFlrKD1O8UXFsXb
Installation
Using TalisMS
copy TheKof/src
folder of this project, and put it under
Use as standalone lib with autoloader
Put source/Talis
in your include path for PHP.
If you use autoloader, it should translate namespace separators \ and underscores _ to url path separators /
and add .php at the end.
Example: The class \TheKof\SurveyMonkeyClient
will be included like that:
Use as standalone lib with simple includes
For this, copy the file boundle/thekofclient.php
into your project and require_once(path/to/thekofclient.php)
.
Quick introduction to the API
Intro
TheKofClient aims at emulating the API itself as closely as possible, be self documenting as much as possible, and have a simple one point
of entry. The examples following this are quick examples of the Client usage and a (very) short explanation of what they do and return. Those are not working examples, Intention
is to show API only. For working examples check the examples
folder. ...
Means various parameters.
Survey
fetch All your surveys. Make sure you have setup the right permission in the APP dashboard on Surveymonkey (Scope: View Surveys)
dry Each method has a *_dry()
version which can be used without an HTTP client, and will return a data structure represnting the request (url/headers/body)