PHPackages                             andrew72ru/yii2-typographer - 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. andrew72ru/yii2-typographer

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

andrew72ru/yii2-typographer
===========================

Typographer for Yii2 based on Evgeny Muravjev Typograph, http://mdash.ru

0320PHP

Since Jun 18Pushed 10y agoCompare

[ Source](https://github.com/andrew72ru/yii2-typographer)[ Packagist](https://packagist.org/packages/andrew72ru/yii2-typographer)[ RSS](/packages/andrew72ru-yii2-typographer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Smart typographer for Yii2
==========================

[](#smart-typographer-for-yii2)

Typographer based on Evgeny Muravjev Typograph,

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist andrew72ru/yii2-typographer "dev-master"

```

or add

```
"andrew72ru/yii2-typographer": "dev-master"

```

to the require section of your `composer.json` file.

Setup
-----

[](#setup)

Set up you application components:

```
    'components' => [
        …
        'typographer' => [
            'class' => 'andrew72ru\typographer\Typographer',
            'params' => [
                'Text.paragraphs' => 'off',
                'Text.breakline' => 'off',
                'OptAlign.oa_oquote' => 'on',
                'OptAlign.oa_obracket_coma' => 'on',
                'OptAlign.oa_oquote_extra' => 'on',
                'Number.math_chars' => 'on',
                // Other parametrs – see http://mdash.ru
            ],
            'markdown' => true, // Whether to use yii\helpers\Markdown to convert text
            'markdownType' => 'gfm' // what type of markdown use in converter
        ]
    ]
```

Usage
-----

[](#usage)

If your text is in paragraph, and you don’t need to convert this to other paragraphs:

```

```

If your text with \\n or markdown text

```

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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/de3029a42f4492f8c900a0ce2f2a05275471040c885b73750e9c7adda08a6019?d=identicon)[andrew72ru](/maintainers/andrew72ru)

---

Top Contributors

[![andrew72ru](https://avatars.githubusercontent.com/u/567649?v=4)](https://github.com/andrew72ru "andrew72ru (10 commits)")[![re8us](https://avatars.githubusercontent.com/u/4831984?v=4)](https://github.com/re8us "re8us (1 commits)")

### Embed Badge

![Health badge](/badges/andrew72ru-yii2-typographer/health.svg)

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

###  Alternatives

[sastrawi/sastrawi

PHP library for stemming Indonesian language (Bahasa Indonesia)

43972.0k4](/packages/sastrawi-sastrawi)[magefan/module-wysiwyg-advanced

Extend TinyMCE 4 in Magento 2

762.3M1](/packages/magefan-module-wysiwyg-advanced)[protonlabs/bitcoin

PHP Bitcoin library with functions for transactions, signatures, serialization, Random/Deterministic ECDSA keys, blocks, RPC bindings

33187.4k8](/packages/protonlabs-bitcoin)[webtorque7/inpage-modules

Adds module blocks to a SilverStripe website.

191.3k](/packages/webtorque7-inpage-modules)

PHPackages © 2026

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