PHPackages                             glytos/glytos - 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. glytos/glytos

ActiveLibrary[API Development](/categories/api)

glytos/glytos
=============

Official Glytos server SDK for PHP.

v0.1.0(yesterday)01↑2900%MITPHP &gt;=8.1

Since Jul 19Compare

[ Source](https://github.com/Glytos/glytos-sdk-php)[ Packagist](https://packagist.org/packages/glytos/glytos)[ Docs](https://glytos.com)[ RSS](/packages/glytos-glytos/feed)WikiDiscussions Synced today

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

glytos/glytos
=============

[](#glytosglytos)

[![CI](https://github.com/Glytos/glytos-sdk-php/actions/workflows/ci.yml/badge.svg)](https://github.com/Glytos/glytos-sdk-php/actions/workflows/ci.yml)[![Packagist Version](https://camo.githubusercontent.com/bb054cd7e02f66f118d26de294624fa8bd409e677bb30c01471e5dc3cdb62630/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676c79746f732f676c79746f73)](https://packagist.org/packages/glytos/glytos)[![License](https://camo.githubusercontent.com/b8cadaa967891081f8f165695470689986c028821dd8a040132f6e661795dc0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c7565)](LICENSE)

The official [Glytos](https://glytos.com) server SDK for PHP.

Call the Glytos API from your backend with an API key: build and run voice agents, start phone calls, mint browser web-call tokens, manage phone numbers, and verify webhooks.

> Never ship an API key to the browser. For in-browser voice, use the `@glytos/web`package with a short-lived token you mint here.

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

[](#requirements)

- PHP 8.1+
- Any [PSR-18](https://www.php-fig.org/psr/psr-18/) HTTP client. One is discovered automatically when installed (Guzzle, Symfony HTTP Client, ...); you can also inject your own. Most frameworks already ship one.

Install
-------

[](#install)

```
composer require glytos/glytos
```

If your project has no HTTP client yet, add one (discovered automatically):

```
composer require guzzlehttp/guzzle
```

Quickstart
----------

[](#quickstart)

```
use Glytos\Client;

$glytos = new Client('gly_...');

// List your agents
$agents = $glytos->workflows->list();

// Mint a web-call token for the browser
$token = $glytos->calls->webToken(workflowUuid: $agents[0]['uuid']);
echo $token['token'], ' ', $token['ws_url'];
```

Scope the client to an environment, a regional stack, or your own HTTP client via the constructor (named arguments keep it readable):

```
$glytos = new Client('gly_...', environment: 'prod');

$overview = $glytos->request('GET', '/analytics/overview');
```

Resources
---------

[](#resources)

NamespaceMethods`$glytos->workflows``list`, `retrieve`, `create`, `publish`, `delete`, `templates`, `session`, `sessionEvents``$glytos->calls``create`, `list`, `retrieve`, `webToken`, `control``$glytos->phoneNumbers``search`, `list`, `provision`, `assign`, `release``$glytos->sessions``list``$glytos->webhooks``list`, `create`, `delete`, `events`, `verify`Any endpoint without a dedicated helper is one call away with `$glytos->request($method, $path, $body, $query)`.

Laravel
-------

[](#laravel)

The package auto-registers a service provider and a `Glytos` facade. Set your key in `.env` (optionally the base URL and environment):

```
GLYTOS_API_KEY=gly_...
# GLYTOS_ENVIRONMENT=prod
```

Then inject the client anywhere, or use the facade for ad-hoc calls:

```
use Glytos\Client;

public function __construct(private Client $glytos) {}

$agents = $this->glytos->workflows->list();

// or, for a quick call:
$overview = \Glytos\Laravel\Glytos::request('GET', '/analytics/overview');
```

Publish the config to customize it: `php artisan vendor:publish --tag=glytos-config`.

Errors
------

[](#errors)

Non-2xx responses (and transport failures, with status `0`) throw an `ApiException`carrying the API error code, HTTP status, and the request id. Catch the shared `ExceptionInterface` to handle every Glytos failure in one place.

```
use Glytos\Exception\ApiException;

try {
    $glytos->workflows->retrieve('missing');
} catch (ApiException $e) {
    echo $e->status, ' ', $e->errorCode, ' ', $e->getMessage(), ' ', $e->requestId;
}
```

Webhooks
--------

[](#webhooks)

Verify a delivery came from Glytos before trusting it. Pass the **raw** request body, the `X-Glytos-Signature` header, and your endpoint secret:

```
use Glytos\Webhook;

$ok = Webhook::verify($rawBody, $_SERVER['HTTP_X_GLYTOS_SIGNATURE'] ?? '', $webhookSecret);
if (!$ok) {
    http_response_code(400);
    exit;
}
```

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

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

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/12630ebe1be9d46f33cf99a5816b2b9c01afdccc45e115c39abac893f3166900?d=identicon)[baranyalcin](/maintainers/baranyalcin)

---

Tags

apisdkaiAgentvoiceglytos

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/glytos-glytos/health.svg)

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

###  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.0M324](/packages/openai-php-client)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

1003.9M50](/packages/getbrevo-brevo-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k16](/packages/tempest-framework)[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60216.0M89](/packages/mollie-mollie-api-php)

PHPackages © 2026

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