PHPackages                             vasildakov/speedy - 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. vasildakov/speedy

ActiveLibrary[API Development](/categories/api)

vasildakov/speedy
=================

Speedy API Client

1.0.0-alpha.13(2y ago)183[6 issues](https://github.com/vasildakov/speedy/issues)1MITPHPPHP &gt;=8.1

Since Jun 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/vasildakov/speedy)[ Packagist](https://packagist.org/packages/vasildakov/speedy)[ Docs](https://github.com/vasildakov/speedy)[ RSS](/packages/vasildakov-speedy/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (23)Versions (22)Used By (1)

Speedy API Client
=================

[](#speedy-api-client)

An easy to use PHP client for [Speedy REST API](https://api.speedy.bg/web-api.html)

[![build](https://github.com/vasildakov/speedy/actions/workflows/build.yml/badge.svg)](https://github.com/vasildakov/speedy/actions/workflows/build.yml)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b82ed1f2fd21db7870a4c1c8460e29174da177494d324f3118a0ef0acb44b349/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f766173696c64616b6f762f7370656564792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/vasildakov/speedy/?branch=main)[![Code Coverage](https://camo.githubusercontent.com/e8fb0e38ac13c4f59fe45ebe064b497799c1f3c0703746156194ad9c24402d26/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f766173696c64616b6f762f7370656564792f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/vasildakov/speedy/?branch=main)[![Build Status](https://camo.githubusercontent.com/03049545fe12705e54fd208fef96022fd6a915edcf3e470ca07c76a7181ab0d1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f766173696c64616b6f762f7370656564792f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/vasildakov/speedy/build-status/main)[![Packagist License](https://camo.githubusercontent.com/228460cce93b45251462980189142e1b5b31585baff9c45cd4ef12b9aedd1ee8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f766173696c64616b6f762f7370656564793f636f6c6f723d626c7565)](https://github.com/vasildakov/speedy/blob/main/LICENSE)[![Packagist Dependency Version](https://camo.githubusercontent.com/5446d40390f5ccc0fd79286d70d4bc73cb5bc671574df4b979ccde473996c7db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f766173696c64616b6f762f7370656564792f706870)](https://packagist.org/packages/vasildakov/shipping)[![Packagist Downloads](https://camo.githubusercontent.com/6b40a802f44203e337f6f4b51e404dd8dc0bb92e0673e2cbbb2c9b831aef6340/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766173696c64616b6f762f7370656564793f636f6c6f723d626c7565)](https://packagist.org/packages/vasildakov/speedy/stats)

Speedy client is a PSR-7 and PSR-18 compliant HTTP client that implements Speedy communication protocol. It has clean and consistent API, is fully unit tested and even comes with an example application to get you started.

Features
--------

[](#features)

This library is compliant with [PSR-7: HTTP message interfaces](https://www.php-fig.org/psr/psr-7/), [PSR-17: HTTP Factories](https://www.php-fig.org/psr/psr-17/) and [PSR-18: HTTP Client](https://www.php-fig.org/psr/psr-18/)

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

[](#installation)

Using Composer:

```
$ composer require vasildakov/speedy

```

Usage
-----

[](#usage)

### The Configuration

[](#the-configuration)

Let's presume that you are using [PHP dotenv](https://github.com/vlucas/phpdotenv) to load environment variables from a file named `.env`. In this case, you need to add the following variables:

```
SPEEDY_USERNAME="username"
SPEEDY_PASSWORD="password"
SPEEDY_LANGUAGE="EN"

```

The next step is to create a new Configuration instance like in the example bellow:

```
