Download the PHP package dansleboby/voipms-php-client without Composer

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

VoIP.ms PHP Client

Latest Stable Version License

A robust PHP client for the VoIP.ms API, built on Guzzle with PSR-3 logging.

Features

Requirements

Installation

You can install the package via Composer:

`

Usage

First, you need to instantiate the VoipMs\Client\Service\Client. It requires a Guzzle client instance, a PSR-3 logger instance, your VoIP.ms API username, and your API password.

Making API Calls

The primary method for interacting with the VoIP.ms API is call(string $method, array $params = []): array.

The client automatically adds your api_username, api_password, sets content_type to json, and includes the specified $method in the request.

Configuration

The Client constructor accepts optional arguments for timeout and maximum retries:

Error Handling

The client uses the following custom exceptions:

Network errors leading to GuzzleHttp\Exception\RequestException or GuzzleHttp\Exception\TransferException are caught internally and retried up to $maxRetries times with an exponential backoff. If retries are exhausted, an HttpException is thrown.

Development

This project uses PHP CodeSniffer for coding standards and PHPUnit for testing. GrumPHP is configured to run checks automatically on commit.

Available Composer scripts:

The PHPCS standard is defined in phpcs.xml.dist. GrumPHP tasks are configured in grumphp.yml.

Autoloading

Author

License

This project is licensed under the MIT License. See the LICENSE file for details (You would need to create this file, but the composer.json specifies "MIT").


All versions of voipms-php-client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
guzzlehttp/guzzle Version ^7.0
psr/log Version ^1.1|^2.0|^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 dansleboby/voipms-php-client contains the following files

Loading the files please wait ...