PHPackages                             ptrofimov/inml - 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. ptrofimov/inml

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

ptrofimov/inml
==============

inML - inline markup language

27PHP

Since Dec 25Pushed 13y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

inML - intuitive markup language
================================

[](#inml---intuitive-markup-language)

*inML is concise and intuitive markup language. This repository contains description of inML markup language and PHP-written library and example script in order to render inML-formatted text into HTML and Text formats.*

- [Basic inML -&gt; HTML transformation rules](https://github.com/ptrofimov/inml#basic-inml---html-transformation-rules)
- [Example with screenshots](https://github.com/ptrofimov/inml#example-with-screenshots)
- [Installation and usage](https://github.com/ptrofimov/inml#installation-and-usage)

Basic inML -&gt; HTML transformation rules
------------------------------------------

[](#basic-inml---html-transformation-rules)

- 1. Transforms paragraphs with style into HTML paragraphs with class:

```
.style
Paragraph.   =>       Paragraph.

```

- 2. Transforms lines with style into HTML spans with class:

```
.style Line
OR            =>       Line
Line .style
```

- 3. Transforms words with style into HTML spans with class:

```

word.style   =>       word

```

- 4. If parser finds styles equal HTML5 tags, it transforms them to corresponding tags (not classes):

```
.div.style
Paragraph.   =>       Paragraph.

```

- 5. You can define your own styles right in the document. Parser will automatically recognise type of style. For example, you can make a hyperlink by defining your own style with url:

```
inML.link is intuitive markup language.
                                          =>   inML
#link https://github.com/ptrofimov/inml            is intuitive markup language.
```

Example with screenshots
------------------------

[](#example-with-screenshots)

inML-formatted text:

```
.h1 inML - inline markup language

.i
inML.b is simple and compact markup
that could be easily transformed into HTML.b

.b Key points:

.ul
.li Easy text formatting
.li Traditional embedded HTML.b styles
.li Ability to add user styles

```

transforms into HTML:

```

    inML - inline markup language

    inML is simple and compact markup
        that could be easily transformed into HTML

    Key points:

    Easy text formatting
    Traditional embedded HTML styles
    Ability to add user styles

```

and looks like this (with predefined CSS styles):

[![Example inML to HTML transformation](https://camo.githubusercontent.com/860329ff18bb0c9848acee4715dacb93e95e6f0df5c7a461aeb99df98f104116/68747470733a2f2f7261772e6769746875622e636f6d2f7074726f66696d6f762f696e6d6c2f6d61737465722f6578616d706c65732f6578616d706c652e6a7067)](https://camo.githubusercontent.com/860329ff18bb0c9848acee4715dacb93e95e6f0df5c7a461aeb99df98f104116/68747470733a2f2f7261772e6769746875622e636f6d2f7074726f66696d6f762f696e6d6c2f6d61737465722f6578616d706c65732f6578616d706c652e6a7067)

Installation and usage
----------------------

[](#installation-and-usage)

- 1. Install [composer](http://getcomposer.org/download/) if need.
- 2. Create composer.json or add dependency:

```
{
   "require":{
       "ptrofimov/inml":"*"
   }
}
```

- 3. Install package:

```
composer install
```

- 4. Usage example:

```
use \Inml\Text;
use \Inml\Render\Html;

$html = (new Html)->render(new Text($inml));
```

- 5. Enjoy!

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7055160847368dea476b261891757010bd52eed1698560047cd49ae178730c76?d=identicon)[ptrofimov](/maintainers/ptrofimov)

---

Top Contributors

[![ptrofimov](https://avatars.githubusercontent.com/u/867178?v=4)](https://github.com/ptrofimov "ptrofimov (99 commits)")

### Embed Badge

![Health badge](/badges/ptrofimov-inml/health.svg)

```
[![Health](https://phpackages.com/badges/ptrofimov-inml/health.svg)](https://phpackages.com/packages/ptrofimov-inml)
```

PHPackages © 2026

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