PHPackages                             granam/web-content-builder - 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. granam/web-content-builder

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

granam/web-content-builder
==========================

Builds HTML from HTML files, markdown or PHP script

2.3.2(4y ago)03987MITPHPPHP &gt;=7.3CI failing

Since Jan 11Pushed 4y agoCompare

[ Source](https://github.com/granam/web-content-builder)[ Packagist](https://packagist.org/packages/granam/web-content-builder)[ RSS](/packages/granam-web-content-builder/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (13)Versions (46)Used By (7)

Web content builder
===================

[](#web-content-builder)

Injecting asset versions
------------------------

[](#injecting-asset-versions)

### CSS example

[](#css-example)

*Example with injecting image md5 sum linked in a CSS file.*

```
$assetsVersion = new \Granam\WebContentBuilder\AssetsVersion(); // will scan for *.css, *.html and *.md by default,

/** body {
    background-image: url("/img/someone.jpeg");
} */
echo file_get_contents(__DIR__ . '/css/main.css');

$changedFiles = $assetsVersion->addVersionsToAssetLinks(
    __DIR__ /* as document root */,
    ['css' ]/* to document root relative dirs to scan */,
    []/* no dirs to exclude */,
    []/* no exact files to scan */,
    false /* no dry run to change files directly */
);
/** Array (
    [0] => '/home/jaroslav/projects/granam/web-content-builder/css/main.css'
) */
print_r($changedFiles);

/** body {
    background-image: url("/img/someone.jpeg?version=664a924915e642c7dc89af370114629a");
} */
echo file_get_contents(__DIR__ . '/css/main.css');
echo md5_file(__DIR__ . '/img/someone.jpeg'); // 664a924915e642c7dc89af370114629a
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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

Every ~24 days

Recently: every ~82 days

Total

45

Last Release

1593d ago

Major Versions

1.2.x-dev → 2.0.02019-08-22

PHP version history (4 changes)1.0.0PHP &gt;=7.1

2.1.5PHP ^7.1|^8.0

2.3.0PHP ^7.3|^8.0

2.3.1PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e35d11c9a75584084f0dc0ba1a3b6ff03355777809cbe8eabd20a88ac00f794?d=identicon)[jaroslavtyc](/maintainers/jaroslavtyc)

---

Top Contributors

[![jaroslavtyc](https://avatars.githubusercontent.com/u/2290225?v=4)](https://github.com/jaroslavtyc "jaroslavtyc (67 commits)")

---

Tags

webhtmlbuildercontent

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/granam-web-content-builder/health.svg)

```
[![Health](https://phpackages.com/badges/granam-web-content-builder/health.svg)](https://phpackages.com/packages/granam-web-content-builder)
```

###  Alternatives

[j0k3r/php-readability

Automatic article extraction from HTML

186808.8k6](/packages/j0k3r-php-readability)[urodoz/truncate-html

Handle truncate action on HTML strings

21294.0k6](/packages/urodoz-truncate-html)[avplab/php-html-builder

PHP Html builder simplifies creation of an html code in php scripts. Allows to build (or generate) the html in simple natural way, similarly as create a html page.

189.2k](/packages/avplab-php-html-builder)

PHPackages © 2026

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