Download the PHP package indatus/gopher without Composer

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

Gopher

Gopher Banner

A stand-alone PHP package for testing telecom dial-in apps. Gopher provides a simple CLI interface for making batches of test calls. It is configured to use Twilio out of the box, but can be configured to use any similar service. Credit to brainwebb01 for the original concept for this package.

Installation with Composer

Install Gopher via Composer with the following one-liner:

If you need to pull Gopher into an existing project, add the following line to the require block of your composer.json:

Next run composer install.


Configuration

Twilio Setup

  1. Signup for a free Twilio account.
  2. Open config/callservice.php and fill in your Account SID and Auth Token.
  3. Enter your Twilio number as the default from number and update timezone with your preferred timezone. Select from PHP's supported timezone list here.

Amazon S3 Setup

Twilio requires an XML script located at a public URL for each call it makes. The script at this URL tells Twilio what to do once the call is answered. Gopher is configured to push your scripts up to an Amazon S3 bucket out of the box.

  1. Signup for an Amazon S3 account.
  2. Create a bucket and give Everyone "View" permissions in the S3 console.
  3. Open config/filesystem.php and locate the s3 configuration section.
  4. Enter your Access Key, Secret Key, and bucket name.

Usage

The root-level gopher executable is used to run three different commands:

Command Name Description
call:single Run a single batch of calls that share the same call script
call:multi Run multiple batches of calls, each batch having it's own call script
call:details Fetch and display details of outgoing calls

See below for further description and usage examples of each.


Run a Single Batch of Calls

The call:single command can be used to run a single batch of calls that share the same call script. It requires two arguments:

  1. A comma-separated list of phone numbers to call
  2. The local path to the call script relative to the gopher executable

call:single uses the default from phone number you provided in congig.php. You can override the default from number by passing the from option:

The root-level call-scripts directory is used to store your call scripts. An example script is provided to get you up and running quickly. The example script contains TwiML (Twilio Markup Language) that tells Twilio how to handle the outgoing call. Feel free to modify test-script.xml and create your own call scripts. You can store your scripts globally, just be sure the path provided is relative to the gopher executable.


Run Multiple Batches of Calls

The call:multi command can be used to run multiple batches of calls, each batch having it's own call script.

Setup

Open batches.php and look at the example batch provided:

A batch has two required elements: to and script. to is an array of phone numbers to call and script is the local path to the call script to use for the batch.

call:multi uses the default from phone number you provided in callservice.php. You can override the default from number by including a from element with the batch:

Add as many batches as you'd like to the batches array and then run:

Run Specific Batches

You can pass a comma-separated list of batch names to call:multi to specify which specific batches to run. Make sure to give your batches unique names if you want to use this feature.


Display Details of Outgoing Calls

The call:details command can be used to display the details of outgoing calls.

Display the details of a specific call with the id option:

You can specify multiple unique ids with the id option.

Using Filters to Narrow Call Details

Available Filters

Option Description
after Only show calls placed after this date. (Y-m-d H:i:s format)
before Only show calls placed before this date. (Y-m-d H:i:s format)
on Only show calls calls placed on this date. (Y-m-d format)
to Only show calls to this phone number.
from Only show calls from this phone number.
status Only show calls currently in this status. May be queued, ringing, in-progress, canceled, completed, failed, busy, or no-answer.

Examples

Get details for calls made on April 5, 2014 from 555-123-4567

Get details for calls made between 7:00 am and 10:00 am on April 5, 2014 with a completed status

Display details for all failed calls made to 555-123-4567


All versions of gopher with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
twilio/sdk Version dev-master
symfony/console Version 2.5.*@dev
league/flysystem Version 0.4.*
aws/aws-sdk-php Version 2.6.*@dev
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 indatus/gopher contains the following files

Loading the files please wait ....