PHPackages                             smsapi.pl/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. [API Development](/categories/api)
4. /
5. smsapi.pl/php-client

ActiveLibrary[API Development](/categories/api)

smsapi.pl/php-client
====================

SMSAPI API PHP Client

v3.0.13(4mo ago)6581.4k—3.1%43[1 PRs](https://github.com/smsapi/smsapi-php-client/pulls)1Apache-2.0PHPPHP ^7 || ~8.0 || ~8.1 || ~8.2 || ~8.3 || ~8.4 || ~8.5CI passing

Since Mar 7Pushed 4mo ago9 watchersCompare

[ Source](https://github.com/smsapi/smsapi-php-client)[ Packagist](https://packagist.org/packages/smsapi.pl/php-client)[ Docs](https://github.com/smsapi/smsapi-php-client)[ RSS](/packages/smsapipl-php-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (66)Used By (1)

SMSAPI PHP Client
=================

[](#smsapi-php-client)

[![Build Status](https://github.com/smsapi/smsapi-php-client/actions/workflows/tests.yml/badge.svg)](https://github.com/smsapi/smsapi-php-client/actions/workflows/tests.yml)[![Packagist - latest version](https://camo.githubusercontent.com/b2d6796845061562cb5e3222ae1d4aba867e729dcb717b9295bda6acc253c7c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736d736170692f7068702d636c69656e742e737667)](https://packagist.org/packages/smsapi/php-client)[![Packagist - downloads](https://camo.githubusercontent.com/48a6bf722c56c7cc64fe78b0e5f31cfbcfb033fdd3a6b1abe4128bb8f5c2ae90/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736d736170692f7068702d636c69656e742e737667)](https://packagist.org/packages/smsapi/php-client)[![Packagist - license](https://camo.githubusercontent.com/8522f475c14df09e5ac9b7c660a1c5f459d0b85c773a44aae189466b9fa39f0e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f736d736170692f7068702d636c69656e742e737667)](https://packagist.org/packages/smsapi/php-client)

**[Version 1.8.7 available here](https://github.com/smsapi/smsapi-php-client/tree/v1.8.7)**

**[SMSAPI.COM API documentation](https://www.smsapi.com/docs)**

**[SMSAPI.PL API documentation](https://www.smsapi.pl/docs)**

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

[](#requirements)

- [composer](https://getcomposer.org/)

Install package with dependencies
---------------------------------

[](#install-package-with-dependencies)

Execute: `composer require smsapi/php-client`

How to pick a service
---------------------

[](#how-to-pick-a-service)

Depending on which of SMSAPI service your account is, you should pick it calling one of a method from examples below:

### PSR-17 and PSR-18

[](#psr-17-and-psr-18)

Starting from version 3, SMSAPI PHP Client supports PSR-17 and PSR-18 compliant HTTP clients. That way this library is independent of client of your choice. You have to provide HTTP client, request factory and stream factory to use our library.

For your convenience we provide an adapter for Curl. To use it you have to enable PHP curl extension and install some HTTP helpers:

```
composer require guzzlehttp/psr7:^1

```

Example below shows how to make use of that adapter (pay attention to namespace *Smsapi\\Client\\Curl*):

```
