PHPackages                             yate-wireless/api - 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. yate-wireless/api

ActiveLibrary[API Development](/categories/api)

yate-wireless/api
=================

Yate core products API wrapper for PHP

0.1.0(2y ago)07MITPHP ^7.4|^8.0|^8.1|^8.2|^8.3

Since Jan 3Compare

[ Source](https://github.com/yate-wireless/api)[ Packagist](https://packagist.org/packages/yate-wireless/api)[ Docs](https://github.com/yate-wireless/api)[ RSS](/packages/yate-wireless-api/feed)WikiDiscussions Synced today

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

Yate core products API wrapper for PHP
======================================

[](#yate-core-products-api-wrapper-for-php)

Purpose
-------

[](#purpose)

This package intended to simplify communication to [Yate core products](https://yatebts.com/products/) API. Build for composer with PSR-4 autoload, only depends from PSR standard implementations and a good to integrate with DI containers.

It is decoupled from most of depenencies, requiring standart PSR interfaces instead of exact implementations. It uses:

- [PSR-7](https://www.php-fig.org/psr/psr-7) standard interfaces used for Request, Response and Stream
- [PSR-17](https://www.php-fig.org/psr/psr-17) standard interfaces used for RequestFactory and StreamFactory to create PSR-7 objects
- [PSR-18](https://www.php-fig.org/psr/psr-18) standard interface for HTTP clients used

Usage
-----

[](#usage)

Start with [simple usage example](https://github.com/yate-wireless/api/blob/master/example/example.php), check [ApiGen docs](https://yate-wireless.github.io/api/). This lib may make communications to the core components much simpler, but you still need deep knowledge of architecture, entities and logics. Use [Yate API docs](https://yatebts.com/documentation/core-network-documentation/).

Mostly, you only need to:

- Create `Config` object, which carry Yate core product location and credentials
- Configure `Api` class instance with Config and other dependencies (manually, autowire, container, whatever)
- Use `call()` method to send api requests to proper nodes and got `ApiResponse` object
- Access response fields as associated array or properties

More complex scenario: instead of use `call()` you may use `prepareRequest()` method to convert you functional request to API to PSR-7 standard request object, send it, got PSR-7 Response object and thet process it with static `Api::parseResult()` to `ApiResponse` object. This could be useful for async and bulk operations which are not supported by PSR-18 client interface.

For example, you need to complete 1000 independent calls as soon as possible, so you use above methods combined with Guzzle [concurrent requests](https://docs.guzzlephp.org/en/stable/quickstart.html#concurrent-requests) feature, so Guzzle do it's job for concurent call while this lib provides API request to PSR-7 request and PSR-7 response to functional result.

Also, `prepareRequest()` and `Api::parseResult()` should work fine in Async calls/promises and may be used in extra promise layer to implement async call to Yate API.

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

[](#installation)

In the Composer storage. Just add proper require section:

```
    "require": {
        "yate-wireless/api": "^0.1"
    }

```

Please, review the [changelog](https://github.com/yate-wireless/api/blob/master/CHANGELOG.MD) before to change used version.

Dependencies
------------

[](#dependencies)

Composer dependencies:

- php: ^7.4|^8.0|^8.1|^8.2|^8.3
- psr/http-message-implementation: ^1.0
- psr/http-factory-implementation: ^1.0
- psr/http-client-implementation: ^1.0

Testing
-------

[](#testing)

Tested with PHPUnit 9.6 on php 7.4 to 8.3, 100% coverage, which does not mean everything will work as intended. Guzzle PSR-7 used for unit tests.

Current testing and compatibility status check on [Github flows](https://github.com/yate-wireless/api/actions/workflows/Compatibility.yml)

To test, install in dev mode and use:

- `composer test` command from library root for run all modular tests

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

912d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/51fb7e1bfe1a741b842ccaffe58a95229f1afa531676dff7d14e61cda27a9ae7?d=identicon)[pavlyuts](/maintainers/pavlyuts)

---

Top Contributors

[![pavlyuts](https://avatars.githubusercontent.com/u/6569739?v=4)](https://github.com/pavlyuts "pavlyuts (15 commits)")

---

Tags

apiyatebts

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yate-wireless-api/health.svg)

```
[![Health](https://phpackages.com/badges/yate-wireless-api/health.svg)](https://phpackages.com/packages/yate-wireless-api)
```

###  Alternatives

[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k28.0M318](/packages/openai-php-client)[deeplcom/deepl-php

Official DeepL API Client Library

2607.3M113](/packages/deeplcom-deepl-php)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

1003.9M50](/packages/getbrevo-brevo-php)[m4tthumphrey/php-gitlab-api

GitLab API v4 client for PHP

9515.8M76](/packages/m4tthumphrey-php-gitlab-api)[n1ebieski/ksef-php-client

PHP API client that allows you to interact with the API Krajowego Systemu e-Faktur

9067.8k](/packages/n1ebieski-ksef-php-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
