PHPackages                             codexsoft/transmission-ts-converter - 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. codexsoft/transmission-ts-converter

ActiveLibrary[API Development](/categories/api)

codexsoft/transmission-ts-converter
===================================

Typescript converter for CodexSoft Transmission library for building HTTP API

v1.0.0(4y ago)09MITPHPPHP ^8.1

Since Feb 14Pushed 4y agoCompare

[ Source](https://github.com/codexsoft/transmission-ts-converter)[ Packagist](https://packagist.org/packages/codexsoft/transmission-ts-converter)[ RSS](/packages/codexsoft-transmission-ts-converter/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Typescript converter for CodexSoft Transmission
===============================================

[](#typescript-converter-for-codexsoft-transmission)

This library provides a way to convert Transmission elements into typescript interfaces (recursively). It supports references.

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

[](#installation)

```
composer require codexsoft/transmission-ts-converter
```

Extending
---------

[](#extending)

By default, only basic element classes can be converted: `CollectionElement`, `JsonElement`, `StringElement`, `NumberElement`, `BoolElement`, `ScalarElement`. You can add your own converters (each needs to extend `CodexSoft\Transmission\Typescript\Converters\AbstractElementTsConverter`)

```
$toTs = (new TransmissionToTypescriptConverter());
$toTs->addKnownConverter(MyElement::class => MyElementTsConverter::class);
```

Usage
-----

[](#usage)

Using this utility you can generate SDK for typescript. For given directory with controllers that implement `CodexSoft\Transmission\OpenApi3\OpenApi3OperationInterface` generator of whole API can be easily implemented.

```
// ...preparing Symfony Finder or whatever
$endpointReflections = [];
foreach ($finder->getIterator() as $fileInfo) {
    $fqnClassName = (string) 'App'.(new \Stringy\Stringy($fileInfo->getRealPath()))
        ->removeRight('.php')
        ->replace('/', "\\");

    $reflectionClass = new \ReflectionClass($fqnClassName);
    if ($reflectionClass->isAbstract()) {
        continue;
    }

    if (!$reflectionClass->implementsInterface(OpenApi3OperationInterface::class)) {
        continue;
    }

    $endpointReflections[] = $reflectionClass;

    $toTs = (new TransmissionToTypescriptConverter());

    /**
     * Set ref interface name generator
     */
    $toTs->setCreateRefClosure(function(string $class) {
        $reflection = new \ReflectionClass($class);
        return (string) (new \Stringy\Stringy('I'.$reflection->getShortName()))->removeRight('Transformer');
    });
}

```

Testing
-------

[](#testing)

```
php ./vendor/bin/phpunit
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

1545d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/db0651d20c2cb994ecfe1072aec9426c81e595480cbaa63810ab47ffba624b03?d=identicon)[kozubsky](/maintainers/kozubsky)

---

Top Contributors

[![kozubsky](https://avatars.githubusercontent.com/u/29902572?v=4)](https://github.com/kozubsky "kozubsky (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codexsoft-transmission-ts-converter/health.svg)

```
[![Health](https://phpackages.com/badges/codexsoft-transmission-ts-converter/health.svg)](https://phpackages.com/packages/codexsoft-transmission-ts-converter)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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