PHPackages                             lonnylot/telnyx-php-sdk - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lonnylot/telnyx-php-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lonnylot/telnyx-php-sdk
=======================

Telnex PHP SDK

031[3 PRs](https://github.com/lonnylot/telnyx-php-sdk/pulls)PHP

Since Dec 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/lonnylot/telnyx-php-sdk)[ Packagist](https://packagist.org/packages/lonnylot/telnyx-php-sdk)[ RSS](/packages/lonnylot-telnyx-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (4)Used By (0)

Introduction
============

[](#introduction)

This is an SDK for the [Telnyx API v2](https://developers.telnyx.com/docs/api/v2/)

> **NOTE** Because the v2 API is still in development some of the [v1](https://developers.telnyx.com/docs/api/v1/) endpoints will exist in the `\Lonnylot\Telnyx\Legacy` namespace.

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

[](#installation)

### Composer

[](#composer)

You can install the bindings via Composer. Run the following command:

`composer require lonnylot/telnyx-php-sdk dev-master`

To use the bindings, use Composer's autoload:

`require_once('vendor/autoload.php');`

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

[](#dependencies)

The library requires the [CrudSugar](https://github.com/lonnylot/crud-sugar/) library.

Getting Started
---------------

[](#getting-started)

This library was made so you can interact with the Telnyx APIs.

**Table of Contents**

1. [Setup Client](#setup-client)
2. [Available Resources](#available-resources)
3. [Available Endpoints](#available-endpoints)
4. [Use Endpoint](#use-endpoint)

### Available Resources

[](#available-resources)

The resources are named as follows:

1. `index` - Telnyx "List"
2. `show` - Telnyx "Retrieve"
3. `update` - Telnyx "Update"
4. `delete` - Telnyx "Delete"
5. `store` - Telnyx "Create"

### Available Endpoints

[](#available-endpoints)

1. `messagingProfile`
2. `numberOrder`
3. `numberSearch`
4. `phoneNumber`
5. `phoneNumberMessaging`
6. `phoneNumberVoice`

### Setup Client

[](#setup-client)

#### Non Laravel

[](#non-laravel)

```
$client = \Lonnylot\Telnyx\Client::getInstance('telnyx');
$client->setApiKey('');
```

#### Laravel

[](#laravel)

To use with Laravel you need to set your Telnyx API key in `app/config/services.php`

```
[
  'telnyx' => [
    'api_key' => env('TELNYX_API_KEY', ''),
  ]
]
```

Now you can dependency inject `\Lonnylot\Telnyx\Client` in your Laravel application and it will be ready to use.

### Use Endpoint

[](#use-endpoint)

To use an endpoint you simply call the endpoint from your client followed by the resource you want to use.

> **NOTE** Keep in mind the resource mapping in the [Available Resources](#available-resources) section

```
$client->numberSearch->index(['filter' => ['limit' => 3, 'features' => ['sms', 'mms']]]);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/64b21af385cbc107515398b5087e1dc0de97c7cfa3a9a02034a46c9b9979a3c2?d=identicon)[lonnylot](/maintainers/lonnylot)

---

Top Contributors

[![lonnylot](https://avatars.githubusercontent.com/u/656791?v=4)](https://github.com/lonnylot "lonnylot (26 commits)")

### Embed Badge

![Health badge](/badges/lonnylot-telnyx-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/lonnylot-telnyx-php-sdk/health.svg)](https://phpackages.com/packages/lonnylot-telnyx-php-sdk)
```

PHPackages © 2026

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