PHPackages                             arron/cli-texy-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. [CLI &amp; Console](/categories/cli)
4. /
5. arron/cli-texy-converter

ActiveLibrary[CLI &amp; Console](/categories/cli)

arron/cli-texy-converter
========================

For converting Texy files to HTML or GitHub Markdown via command line.

3.0.0(2y ago)03831GPL-1.0-or-laterPHPPHP ~8.0

Since May 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/arron0/cli-texy-converter)[ Packagist](https://packagist.org/packages/arron/cli-texy-converter)[ RSS](/packages/arron-cli-texy-converter/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (7)Versions (6)Used By (1)

cli-texy-converter
==================

[](#cli-texy-converter)

For converting Texy files to HTML or GitHub Markdown via command line. It can also be used as a library in your project and you can call converters directly.

If you are converting to HTML, you can provide Latte template that will be filled.

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

[](#installation)

Use [composer](http://getcomposer.org) to install TestIt. Just add **arron/cli-texy-converter** project as your dependency.

Usage
-----

[](#usage)

### Command line

[](#command-line)

```
convert texy [-t|--template="..."] [-f|--force] from to

```

- **from** is source texy file
- **to** is target file that will be created. What conversion will be used is determined according to the extension of the target file (.html and .htm for conversion to HTML, .md for conversion to Markdown).
- **-f or --force** is option to force rewrite target file if already exists. Without this option the exception will be thrown when trying to overwrite existing file.
- **-t|--template="..."** is path to Latte template. If provided, the result of conversion will be passed to this template via `$content` variable.

### In program

[](#in-program)

There are two classes. One for conversion to HTML and one for conversion to Markdown. Both classes is implementing `Arron\Converter\IConvert` interface and usage is really straight forward.

```
$htmlConverter = new HtmlConverter();
$resultString = $htmlConverter->convert($sourceString);

$markdownConverter = new MarkdownConverter();
$resultString = $markdownConverter->convert($sourceString);
```

Conversion
----------

[](#conversion)

### HTML

[](#html)

The Texy setting for conversion is in fact the same as you can see in [Texy editor](http://editor.texy.info). For syntax highlighting the [FSHL](http://fshl.kukulich.cz/) library is used.

There are no possibility to change some of the options so far.

### Markdown

[](#markdown)

Texy is converted to the [GitHub Markdown syntax](https://help.github.com/articles/markdown-basics). The conversion is done through Texy parser and ouput is changed to not to convert to HTML but to Markdown. Due to this solution there are several limitations. Texy doesn't provide all of the necessary customizations so these parts are reamaining unchanged in the ouput due to this:

- lists
- tables

Some Texy features are not supported in GitHub Markdown language:

- acronyms: Texy syntax NATO((North Atlantic Treaty Organisation)) is simply converted to NATO (North Atlantic Treaty Organisation).
- inline quoting: Texy syntax &gt;&gt;inline quote&lt;&lt; is left unchanged.
- Texy syntax ++inserted++ --deleted-- ^^superscript^^ m^2 alternative superscript **subscript** m\_2 alternative subscript is converted as inserted deleted superscript m2 alternative superscript subscript m2 alternative subscript

Licensing
---------

[](#licensing)

Feel free to use it under the GPL license of under GPL v2 or any later version of GPL.

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity72

Established project with proven stability

 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

Every ~826 days

Total

5

Last Release

1065d ago

Major Versions

1.0.2 → 2.0.02015-12-07

2.0.0 → 3.0.02023-06-09

PHP version history (3 changes)1.0.0PHP &gt;=5.3.3

2.0.0PHP &gt;=5.4.4

3.0.0PHP ~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/138b53a80c3b71d22148713e65ec03d68b353a9cf04f1f928b70a6f503f66c47?d=identicon)[arron](/maintainers/arron)

---

Top Contributors

[![arron0](https://avatars.githubusercontent.com/u/538190?v=4)](https://github.com/arron0 "arron0 (50 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/arron-cli-texy-converter/health.svg)

```
[![Health](https://phpackages.com/badges/arron-cli-texy-converter/health.svg)](https://phpackages.com/packages/arron-cli-texy-converter)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[phpcr/phpcr-shell

Shell for PHPCR

721.3M8](/packages/phpcr-phpcr-shell)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)

PHPackages © 2026

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