PHPackages                             dansleboby/voipms-php-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. dansleboby/voipms-php-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

dansleboby/voipms-php-client
============================

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

0.0.2(11mo ago)03[1 issues](https://github.com/dansleboby/voipms-php-client/issues)MITPHPPHP &gt;=8.0

Since May 25Pushed 11mo agoCompare

[ Source](https://github.com/dansleboby/voipms-php-client)[ Packagist](https://packagist.org/packages/dansleboby/voipms-php-client)[ RSS](/packages/dansleboby-voipms-php-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

VoIP.ms PHP Client
==================

[](#voipms-php-client)

[![Latest Stable Version](https://camo.githubusercontent.com/f79231e7055cc2d0682daee6ba1dab902f7c13878df852984d7afcb816c49717/68747470733a2f2f706f7365722e707567782e6f72672f64616e736c65626f62792f766f69706d732d7068702d636c69656e742f762f737461626c65)](https://packagist.org/packages/dansleboby/voipms-php-client)[![License](https://camo.githubusercontent.com/450ed3e5096af5f17a34ca24d456a16a1b601bfb15dc2740fcecb2676130cb5c/68747470733a2f2f706f7365722e707567782e6f72672f64616e736c65626f62792f766f69706d732d7068702d636c69656e742f6c6963656e7365)](https://packagist.org/packages/dansleboby/voipms-php-client)

A robust PHP client for the [VoIP.ms API](https://voip.ms/m/api.php), built on Guzzle with PSR-3 logging.

Features
--------

[](#features)

- Easy-to-use client for all VoIP.ms API methods.
- Built on the popular Guzzle HTTP client for reliable requests.
- PSR-3 compliant logging for easy integration with your existing logging setup.
- Handles API errors and network issues gracefully with custom exceptions.
- Includes retry logic for transient network errors.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0
- [GuzzleHttp/Guzzle](https://packagist.org/packages/guzzlehttp/guzzle) ^7.0
- [PSR/Log](https://packagist.org/packages/psr/log) ^1.1|^2.0

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require dansleboby/voipms-php-client
```

Usage
-----

[](#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.

```
