PHPackages                             n0sz/commonmark-picture-extension - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. n0sz/commonmark-picture-extension

ActiveCommonmark-extension[Parsing &amp; Serialization](/categories/parsing)

n0sz/commonmark-picture-extension
=================================

Adds support of picture tags to CommonMark PHP implementation

v0.0.1-alpha(3y ago)211MITPHP

Since Oct 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/noah1400/commonmark-picture-extension)[ Packagist](https://packagist.org/packages/n0sz/commonmark-picture-extension)[ RSS](/packages/n0sz-commonmark-picture-extension/feed)WikiDiscussions main Synced 1mo ago

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

n0sz/commonmark-picture-extension
=================================

[](#n0szcommonmark-picture-extension)

This library adds support of `` tags to [league/commonmark](https://github.com/thephpleague/commonmark)

Installation
============

[](#installation)

This project can be install via composer:

```
composer require n0sz/commonmark-picture-extension

```

Usage
=====

[](#usage)

```
use League\CommonMark\Environment\Environment;
use League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension;
use N0sz\CommonMark\Picture\PictureExtension;

$environment = new Environment();
$environment->addExtension(new CommonMarkCoreExtension());
$environment->addExtension(new PictureExtension());
```

Syntax
======

[](#syntax)

Code:

```
[[[
+ img_1 {media:"(min-width:650px)"}
+ img_2 {media:"(min-width:465px)"}
- img_3
]]]
```

Result:

```

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

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

1311d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/91030db65cb13a76dae7e9e8521a0bb438776277498fae5e70dc8d142eb0f6d4?d=identicon)[n0sz](/maintainers/n0sz)

---

Top Contributors

[![noah1400](https://avatars.githubusercontent.com/u/48360809?v=4)](https://github.com/noah1400 "noah1400 (7 commits)")

---

Tags

commonmarkcommonmark-extensionmarkdown

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/n0sz-commonmark-picture-extension/health.svg)

```
[![Health](https://phpackages.com/badges/n0sz-commonmark-picture-extension/health.svg)](https://phpackages.com/packages/n0sz-commonmark-picture-extension)
```

###  Alternatives

[spatie/laravel-markdown

A highly configurable markdown renderer and Blade component for Laravel

4053.4M35](/packages/spatie-laravel-markdown)[mnapoli/front-yaml

2895.6M45](/packages/mnapoli-front-yaml)[daux/daux.io

Documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly

825191.0k1](/packages/daux-dauxio)[spatie/sheets

Store &amp; retrieve your static content in plain text files

30187.7k4](/packages/spatie-sheets)[prezet/prezet

Prezet: Markdown Blogging for Laravel

2969.8k2](/packages/prezet-prezet)[sinnbeck/markdom

Converts markdown to html with classes

69122.6k2](/packages/sinnbeck-markdom)

PHPackages © 2026

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