PHPackages                             frontkom/fs-info-transformer - 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. frontkom/fs-info-transformer

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

frontkom/fs-info-transformer
============================

Transform data coming from FS to regular and usable HTML

0.0.1(1y ago)0144GPL-2.0-or-laterPHP

Since Oct 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/frontkom/fs-info-transformer)[ Packagist](https://packagist.org/packages/frontkom/fs-info-transformer)[ RSS](/packages/frontkom-fs-info-transformer/feed)WikiDiscussions main Synced 1mo ago

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

fs-info-transformer
===================

[](#fs-info-transformer)

Transform data coming from FS to regular and usable HTML

[![Test](https://github.com/frontkom/fs-info-transformer/actions/workflows/test.yml/badge.svg)](https://github.com/frontkom/fs-info-transformer/actions/workflows/test.yml)

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

[](#installation)

Install with composer.

```
composer require frontkom/fs-info-transformer
```

Usage
-----

[](#usage)

```
use Frontkom\FsInfoTransformer\Transformer;

$transformer = new Transformer();
$text = 'Vi viser til https://www.example.comgjeldende forskrift og tilhørende retningslinjer.';
$html = $transformer->transform($text);
echo $html;
// Will output
// Vi viser til gjeldende forskrift og tilhørende retningslinjer.
```

API
---

[](#api)

### `transform(string $text): string`

[](#transformstring-text-string)

Transforms the given text to HTML.

This method will run all the most common transformations on the text, including most of the ones below. For a direct link to read the implementation, [see the method in the source code directly.](https://github.com/frontkom/fs-info-transformer/blob/main/src/Transformer.php#L7)

### `replaceEmptyParagraphs(string $text): string`

[](#replaceemptyparagraphsstring-text-string)

### `processBulletedLists(string $text): string`

[](#processbulletedlistsstring-text-string)

### `processNumberedLists(string $text): string`

[](#processnumberedlistsstring-text-string)

### `replaceTags(string $data, $tag, $replacement_tag, $keep_self_closing_tags = false): string`

[](#replacetagsstring-data-tag-replacement_tag-keep_self_closing_tags--false-string)

### `processWeblinks(string $data, bool $nofollow = true): string`

[](#processweblinksstring-data-bool-nofollow--true-string)

License
-------

[](#license)

GPL-2.0-or-later

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

570d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/012259317b9e5a3b6cc2b03681d852940e11ac05f37bfbda7360d6524b1c9085?d=identicon)[eiriksm](/maintainers/eiriksm)

---

Top Contributors

[![eiriksm](https://avatars.githubusercontent.com/u/865153?v=4)](https://github.com/eiriksm "eiriksm (18 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/frontkom-fs-info-transformer/health.svg)

```
[![Health](https://phpackages.com/badges/frontkom-fs-info-transformer/health.svg)](https://phpackages.com/packages/frontkom-fs-info-transformer)
```

###  Alternatives

[velhron/dadata-bundle

DaData for Symfony

2076.6k](/packages/velhron-dadata-bundle)[phpcfdi/xml-cancelacion

Genera documentos de cancelación de CFDI firmados (XMLSEC)

1149.5k4](/packages/phpcfdi-xml-cancelacion)[pressbooks/pressbooks-aldine

Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the world’s first publisher.

114.3k](/packages/pressbooks-pressbooks-aldine)

PHPackages © 2026

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