Download the PHP package telerivet/telerivet-php-client without Composer

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

PHP client library for Telerivet REST API

https://telerivet.com/api

Overview:

This library makes it easy to integrate your web application with Telerivet. You can use it to:

All API methods are fully documented at https://telerivet.com/api/rest/php , as well as in the comments of the PHP source files. To learn what functionality is available, start with telerivet.php, lib/project.php, and lib/apicursor.php .

System Requirements:

PHP 7.0 or higher (PHP 5.3-5.6 supported by an older version of this library at https://github.com/Telerivet/telerivet-php-client/releases/tag/v1.5.0) PHP json extension (usually enabled in PHP by default) PHP curl extension (usually enabled in PHP by default)

Installation:

Copy this directory into your web application, and require telerivet.php in your PHP code, e.g.:

require_once "path/to/telerivet.php";

Alternatively, if you use Composer for dependency management, you can add the following to your composer.json:

"require": { "telerivet/telerivet-php-client": "dev-master" }

Example Usage:

require_once "path/to/telerivet.php";

$API_KEY = 'YOUR_API_KEY'; // from https://telerivet.com/api/keys $PROJECT_ID = 'YOUR_PROJECT_ID';

$telerivet = new Telerivet_API($API_KEY);

$project = $telerivet->initProjectById($PROJECT_ID);

// Send a SMS message $project->sendMessage(array( 'to_number' => '555-0001', 'content' => 'Hello world!' ));

// Query contacts $name_prefix = 'John'; $cursor = $project->queryContacts(array( 'name[prefix]' => $name_prefix, 'sort' => 'name', ))->limit(20);

echo "{$cursor->count()} contacts matching $name_prefix:\n";

while ($cursor->hasNext()) { $contact = $cursor->next(); echo "{$contact->name} {$contact->phone_number} {$contact->vars->birthdate}\n"; }

// Import a contact $contact = $project->getOrCreateContact(array( 'name' => 'John Smith', 'phone_number' => '555-0001', 'vars' => array( 'birthdate' => '1981-03-04', 'network' => 'Vodacom' ) ));

// Add a contact to a group $group = $project->getOrCreateGroup('Subscribers'); $contact->addToGroup($group);


All versions of telerivet-php-client with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
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 telerivet/telerivet-php-client contains the following files

Loading the files please wait ....