PHPackages                             phile/inline-image - 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. [Templating &amp; Views](/categories/templating)
4. /
5. phile/inline-image

ActivePhile-plugin[Templating &amp; Views](/categories/templating)

phile/inline-image
==================

A plugin take an image name and generate a wrapped image tag.

1.0.0(11y ago)31072[1 PRs](https://github.com/PhileCMS/phileInlineImage/pulls)MITPHP

Since Jun 19Pushed 9y ago3 watchersCompare

[ Source](https://github.com/PhileCMS/phileInlineImage)[ Packagist](https://packagist.org/packages/phile/inline-image)[ Docs](http://philecms.com)[ RSS](/packages/phile-inline-image/feed)WikiDiscussions master Synced 1w ago

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

phileInlineImage
================

[](#phileinlineimage)

A plugin for [Phile](https://github.com/PhileCMS/Phile) to take an image name and generate a wrapped image tag.

### 1.1 Installation (composer)

[](#11-installation-composer)

```
php composer.phar require phile/inline-image:*

```

### 1.2 Installation (Download)

[](#12-installation-download)

- Install the latest version of [Phile](https://github.com/PhileCMS/Phile)
- Clone this repo into `plugins/phile/inlineImage`

### 2. Activation

[](#2-activation)

After you have installed the plugin. You need to add the following line to your `config.php` file:

```
$config['plugins']['phile\\inlineImage'] = array('active' => true);

```

### Usage

[](#usage)

Some example markdown input:

```
## This is a Sub Page

This is page.md in the "sub" folder.

icon.png

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
```

This is what will be output. You can see that `icon.png` was wrapped with some HTML:

```
This is a Sub Page
This is page.md in the "sub" folder.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
```

### Config

[](#config)

This is the default `config.php` file. It explains what each key =&gt; value does.

```
return array(
  'images_dir' => 'content/images/', // the folder where your images exist
  'wrap_element' => 'p', // the element to wrap the img tag in
  'wrap_class' => 'content-image' // the class to apply to the wrap element
  );
```

You can see how the plugin applies the config data to the HTML output.

The `images_dir` should be relative to the root of the Phile installation (the constant `ROOT_DIR` will contain your root path).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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

4351d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e96d91f6220abcbbf2e6bcd12988b11330178e08a33cd663e813257a359b12fc?d=identicon)[NeoBlack](/maintainers/NeoBlack)

---

Top Contributors

[![james2doyle](https://avatars.githubusercontent.com/u/1425304?v=4)](https://github.com/james2doyle "james2doyle (8 commits)")[![NeoBlack](https://avatars.githubusercontent.com/u/1128085?v=4)](https://github.com/NeoBlack "NeoBlack (3 commits)")

---

Tags

philecms-plugincontentcmsphile

### Embed Badge

![Health badge](/badges/phile-inline-image/health.svg)

```
[![Health](https://phpackages.com/badges/phile-inline-image/health.svg)](https://phpackages.com/packages/phile-inline-image)
```

###  Alternatives

[modx/revolution

MODX Revolution is a Content Management System

1.4k9.1k12](/packages/modx-revolution)

PHPackages © 2026

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