PHPackages                             cms-alchemy/mild-media-manipulation - 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. cms-alchemy/mild-media-manipulation

ActiveDrupal-module[Utility &amp; Helpers](/categories/utility)

cms-alchemy/mild-media-manipulation
===================================

Token-based media layout wrappers for Drupal using controlled CSS variants.

00PHP

Since Mar 31Pushed 3mo agoCompare

[ Source](https://github.com/DanielMoody/mild_media_manipulation)[ Packagist](https://packagist.org/packages/cms-alchemy/mild-media-manipulation)[ RSS](/packages/cms-alchemy-mild-media-manipulation/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Mild Media Manipulation
=======================

[](#mild-media-manipulation)

Mild Media Manipulation is a lightweight Drupal text filter that allows editors to apply simple layout styles to embedded media using inline tokens.

It wraps content in semantic containers (`` or ``) and applies predefined CSS classes, optionally including captions.

---

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

[](#installation)

```
composer require cms-alchemy/mild-media-manipulation
drush en mild_media_manipulation

```

Features
--------

[](#features)

- Token-based syntax for inline layout control
- Controlled vocabulary (no arbitrary class injection)
- Optional captions using semantic `` / ``
- Automatically attaches required CSS
- Works inside standard text formats (e.g., Basic HTML, Full HTML)

---

Concept
-------

[](#concept)

Instead of forcing editors to manually write HTML or rely on complex media configuration, this module provides a simple wrapper syntax:

\[mmm:variant\] ... \[/mmm\]

This allows layout decisions to remain **editor-controlled but constrained**, avoiding layout chaos.

---

🧾 Usage
-------

[](#-usage)

### Basic syntax

[](#basic-syntax)

\[mmm:left-side\] [![](/example.jpg)](/example.jpg)\[/mmm\]

### With caption

[](#with-caption)

\[mmm:right-side\] [![](/example.jpg)](/example.jpg) | This is a caption \[/mmm\]

---

Available Variants
------------------

[](#available-variants)

- `left-side` → floats content left
- `right-side` → floats content right
- `two-column` → grid layout (2 columns)
- `centered` → centered content

Invalid variants are ignored (content passes through unchanged).

---

Output Behavior
---------------

[](#output-behavior)

### Without caption

[](#without-caption)

 ...

 ``` With caption ... ...

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance55

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/991582a25b97e57d7515e394e19dcb6dd8c1875d2ce1e76cec695e4f92ac6408?d=identicon)[CMS\_Alchemy](/maintainers/CMS_Alchemy)

---

Top Contributors

[![DanielMoody](https://avatars.githubusercontent.com/u/231975106?v=4)](https://github.com/DanielMoody "DanielMoody (8 commits)")

### Embed Badge

![Health badge](/badges/cms-alchemy-mild-media-manipulation/health.svg)

```
[![Health](https://phpackages.com/badges/cms-alchemy-mild-media-manipulation/health.svg)](https://phpackages.com/packages/cms-alchemy-mild-media-manipulation)
```

PHPackages © 2026

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