PHPackages                             crossknowledge/subconverter-bundle - 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. crossknowledge/subconverter-bundle

ActiveSymfony-bundle

crossknowledge/subconverter-bundle
==================================

Implementation of subtitles converter with following supported formats: srt, webvtt, ttaf1, txt, tabtxt

1.3.0(3mo ago)412.7k↓100%2MITPHPPHP &gt;=7.4

Since Apr 20Pushed 3mo ago8 watchersCompare

[ Source](https://github.com/CrossKnowledge/SubConverterBundle)[ Packagist](https://packagist.org/packages/crossknowledge/subconverter-bundle)[ RSS](/packages/crossknowledge-subconverter-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)DependenciesVersions (12)Used By (0)

[![Build Status](https://camo.githubusercontent.com/e41c95d0e45a7540f343d35980ad276e2bd2ac90eb56e2f032355a74076fb073/68747470733a2f2f6170692e7472617669732d63692e6f72672f43726f73734b6e6f776c656467652f537562436f6e76657274657242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/CrossKnowledge/SubConverterBundle)[![Code Climate](https://camo.githubusercontent.com/102cbab58b7d58f9e481acf03dcb0874665f6c8880325fd0f9b3577b3d4a46d8/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f43726f73734b6e6f776c656467652f537562436f6e76657274657242756e646c652e737667)](https://codeclimate.com/github/CrossKnowledge/SubConverterBundle)[![Total Downloads](https://camo.githubusercontent.com/bf8257d2878fe3a1d6eba21233b61b8cb530ec2575c0d3c1382fd1d4b0b6bdcb/68747470733a2f2f706f7365722e707567782e6f72672f63726f73736b6e6f776c656467652f737562636f6e7665727465722d62756e646c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/crossknowledge/subconverter-bundle)

CrossKnowledge SubConverter Bundle
==================================

[](#crossknowledge-subconverter-bundle)

The CrossKnowledge/SubConverterBundle aims to convert subtitles files from and to different formats.

Formats:

- SRT
- WebVTT
- TXT
- TTAF1

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

[](#installation)

Add the bundle to your project:

```
composer require crossknowledge/subconverter-bundle
```

Enable bundle in your kernel:

```
class AppKernel	extends Kernel
{
  public function registerBundles()
  {
	  $bundles = array(
      ...
      new \CrossKnowledge\SubConverterBundle\CrossKnowledgeSubConverterBundle(),
		);
    ...
```

Now, to convert a subtitles file to a specific format, use can use the following service in your controller:

```
  $this->get('crossknowledge.subconverterbundle.converter')->convert($inputFilePath, $outputFilePath, $outputFormat, $includeBom);
```

Example
-------

[](#example)

```
$inputFilePath // "/tmp/my_subtitle.srt"
$outputFilePath // "/tmp/my_subtitle.webvtt"
$outputFormat // ['srt'|'webvtt'|'ttaf1'|'txt']
$includeBom // [true|false]
```

License
-------

[](#license)

This bundle is under the MIT license. See the complete license in the bundle:

```
Resources/meta/LICENSE

```

About
-----

[](#about)

CrossKnowledgeSubConverterBundle is a [CrossKnowledge](https://crossknowledge.com) initiative. See also the list of [contributors](https://github.com/CrossKnowledge/SubConverterBundle/contributors). A couple of "distribution" (travis,readme.md, etc..) files are inspired from FriendsOfSymfony/FOSUserBundle's.

Contributions
-------------

[](#contributions)

Contributions are more than welcome. We will try to integrate them. As long as there is no BC, anything can be suggested.

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/CrossKnowledge/SubConverterBundle/issues).

When reporting a bug, it may be a good idea to reproduce it in a basic project built using the [Symfony Standard Edition](https://github.com/symfony/symfony-standard)to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance82

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~475 days

Recently: every ~643 days

Total

7

Last Release

90d ago

PHP version history (2 changes)1.0.1PHP &gt;=5.5

1.2.0PHP &gt;=7.4

### Community

---

Top Contributors

[![smartarello](https://avatars.githubusercontent.com/u/16341570?v=4)](https://github.com/smartarello "smartarello (10 commits)")[![iMRIC](https://avatars.githubusercontent.com/u/640944?v=4)](https://github.com/iMRIC "iMRIC (7 commits)")[![ylelievre](https://avatars.githubusercontent.com/u/19683632?v=4)](https://github.com/ylelievre "ylelievre (3 commits)")[![Alex-Caepio](https://avatars.githubusercontent.com/u/80680869?v=4)](https://github.com/Alex-Caepio "Alex-Caepio (2 commits)")[![ayakhnenka-ck](https://avatars.githubusercontent.com/u/171711204?v=4)](https://github.com/ayakhnenka-ck "ayakhnenka-ck (2 commits)")[![lbothman](https://avatars.githubusercontent.com/u/44613600?v=4)](https://github.com/lbothman "lbothman (2 commits)")[![ogiammetta](https://avatars.githubusercontent.com/u/6746906?v=4)](https://github.com/ogiammetta "ogiammetta (2 commits)")[![zajjoseph](https://avatars.githubusercontent.com/u/17317562?v=4)](https://github.com/zajjoseph "zajjoseph (1 commits)")[![rafaelpires815](https://avatars.githubusercontent.com/u/3921387?v=4)](https://github.com/rafaelpires815 "rafaelpires815 (1 commits)")[![dennned](https://avatars.githubusercontent.com/u/9106824?v=4)](https://github.com/dennned "dennned (1 commits)")[![lbenothman](https://avatars.githubusercontent.com/u/3247643?v=4)](https://github.com/lbenothman "lbenothman (1 commits)")[![anaisducoffe](https://avatars.githubusercontent.com/u/45068288?v=4)](https://github.com/anaisducoffe "anaisducoffe (1 commits)")

### Embed Badge

![Health badge](/badges/crossknowledge-subconverter-bundle/health.svg)

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

PHPackages © 2026

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