Download the PHP package sarhanm/sms-survey without Composer

On this page you can find all versions of the php package sarhanm/sms-survey. 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 sms-survey

Build Status

SMS Survey Manager

About this Library

Twilio is a text messaging service which allows you to interact with your users/clients/community via text messages. No need for smart phones or building apps.

This library uses twilio to conduct surveys. This project was born out of a need for non-profit groups to survey their communities for feed back (mostly after an event/class/seminars) without paying lots and lots of money. Twilio.org offers a discounted rate for 501(c)3 organizations, which makes it ideal.

Screenshots

Adding a survey

Add a survey

List of active and disabled surveys:

survey list

Adding a question to a survey

Adding Questions

Survey Report (Text was all sample text)

Survey Report

Features

Manage Survey

You can create as many surveys as you want, all running at the same time. Surveys can be created via the admin interface. The admin interface also gives you pie and bar charts of your survey answers to easily digest the results.

Survey Questions

Survey questions can be of the following types

  1. Text
  2. Yes/No
  3. 5 start rating.

You can have as many questions as you want per survey. Although you should minimize questions to 2 or 3.

Starting a Survey

Surveys are activated by texting the survey name to your assigned twilio phone number. The user than has 10 minutes to complete the survey.

Installation

Install via Composer

Install Manually

  1. Clone this repo.

  2. Run composer to install all dependencies

Note: You can download composer.phar from https://getcomposer.org/

Test Manual Setup

NOTE: By default, this does not test your database setup as the tests are run against a in-memory database. If you would like to test against a real database, just change the $test in survey-db-config.php to reference your database.

Database Configuration

1. Create a file named "survey-db-config.php"

File should contain the following:

Driver options can be found on Doctrin's documentation page.

This file will be discovered in the following way

  1. Look for a PHP named constant with the path to the above file. Make sure its defined before you instantiate any of the survey classes.

  2. Look for the file survey-db-config.php in the include_path via stream_resolve_include_path

  3. Look for the file survey-db-config.php in the cwd() or in cwd()/config.

2. Setup Doctrine's cli-config.php File

NOTE: This only applies if you installed this library via composer. Otherwise the cli-config.php file already exists in the correct location at the root.

Doctrine looks for a cli-config.php file at the root directory.

Add a cli-config.php file either in your root directory or in a folder named "config" in your root directory.

The contents of the cli-config.php should be

3. Generate the SQL code to create DB tables.

Take the output and run in your database.

You can alternatively let doctrine execute the sql statements for you as long as you've properly configured your database. Usually you'll want to run dump-sql first to verify things are setup correctly before the below command.

You can see other options by passing a -h to the above command.

Twilio Setup

NOTE: You will need to create and setup your own twilio.com account

In your Twilio Request Handler, add the following

Admin pages

Admin pages are available to manage your surveys and view reporting.

Warning: These pages are rough, quick and dirty implementations. They need a lot of work. They are also not secure. You should put some password protection on those directories/files

http://your-host-name.com/path-to-survey-sms/src/web/admin


All versions of sms-survey with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
apache/log4php Version 2.3.0
doctrine/orm Version >=2.4
myclabs/php-enum Version *
twilio/sdk Version *
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 sarhanm/sms-survey contains the following files

Loading the files please wait ....