Download the PHP package voicetel/sdk without Composer

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

πŸ“ž VoiceTel PHP SDK

The official PHP client for the VoiceTel REST API β€” provision numbers, place orders, validate e911, send messages, and manage your account, with modern PHP 8.1+ ergonomics and battle-tested Guzzle transport.

Version PHP License Coverage

πŸ“š Table of Contents

✨ Features

πŸ›‘οΈ Modern PHP, Strictly Typed

πŸ” Production-Grade Transport

πŸ“ž Complete API Coverage (73 operations)

πŸ§ͺ Battle-Tested

πŸ“¦ Clean Distribution

πŸš€ Installation

Requires PHP 8.1 or later and the json extension (bundled with PHP).

🏁 Quickstart

Or, if you already have an API key, skip login() and pass it straight to the constructor:

πŸ”‘ Authentication

Every endpoint requires Authorization: Bearer <apikey> except POST /v2.2/account/api-key, which exchanges username + password for a fresh key. $client->login() handles the exchange and installs the returned key on the client.

Re-fetch the API key after any password change β€” the old one is invalidated.

Don't have credentials yet? Get them at voicetel.com/docs/api/v2.2/credentials.

πŸ—ΊοΈ Resource Reference

Resource Property on Client Example
Account $client->account $client->account->cdr(1700000000, 1700100000)
ACL $client->acl $client->acl->add(['acl' => [['cidr' => '1.2.3.0/24']]])
Authentication $client->authentication $client->authentication->update(['authType' => 1])
e911 $client->e911 $client->e911->validate(['address1' => '1 Way', ...])
Gateways $client->gateways $client->gateways->list()
iNumbering $client->iNumbering $client->iNumbering->searchInventory(['npa' => 201])
Lookups $client->lookups $client->lookups->lrn('2015551234', '2125550000')
Messaging $client->messaging $client->messaging->send(['fromNumber' => ..., 'toNumber' => ..., 'text' => ...])
Numbers $client->numbers $client->numbers->assignCampaign('2015551234', ['campaignId' => 'CXXXXXX'])
Support $client->support $client->support->create(['subject' => '...', 'message' => '...'])

Notes on payload shape

🚨 Error Handling

All HTTP errors throw VoiceTel\Sdk\ApiError. Inspect kind, statusCode, code(), or body:

Kind HTTP status
ErrorKind::BadRequest 400
ErrorKind::Authentication 401
ErrorKind::PermissionDenied 403
ErrorKind::NotFound 404
ErrorKind::Conflict 409
ErrorKind::RateLimit 429
ErrorKind::Server 5xx
ErrorKind::Unknown other / transport

Or use the helper predicates:

⏱️ Rate Limits

These endpoints are limited to 6 requests per hour per IP:

The SDK automatically retries 429 responses with Retry-After honored, up to maxRetries (default 2). To bump it:

πŸ› οΈ Development

πŸ“– API Documentation

πŸ™Œ Contributors

Contributions welcome. Open an issue describing the change, or send a pull request against main.

πŸ’– Sponsors

Sponsor Contribution
VoiceTel Communications Primary development and production hosting

πŸ“„ License

This project is licensed under the MIT License β€” see the LICENSE file for details.


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
guzzlehttp/guzzle Version ^7.8 || ^8.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 voicetel/sdk contains the following files

Loading the files please wait ...