PHPackages                             r4j4h/jspackager-html-tagger - 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. r4j4h/jspackager-html-tagger

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

r4j4h/jspackager-html-tagger
============================

Simple bare bones HTML tag generator for &lt;script&gt; and &lt;link&gt; tags

1.0(10y ago)148.6k↓29.5%MITPHP

Since Jun 2Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

Tagger is a simple bare bones converter from file paths to `` and `` HTML tags written in PHP.

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

[](#installation)

1. Install [Composer](https://getcomposer.org)
2. `composer require 'r4j4h/jspackager-html-tagger:1.0'`

Usage
=====

[](#usage)

Basics
------

[](#basics)

```
echo $tagger->getScriptTag('myscript.js');
```

```

```

```
echo $tagger->getStylesheetTag('myscript.css');
```

```

```

Custom Media Type for Stylesheets
---------------------------------

[](#custom-media-type-for-stylesheets)

```
$tagger->setStylesheetMediaType('screen');
echo $tagger->getStylesheetTag('myscript.css');
```

```

```

Cache Bust
----------

[](#cache-bust)

```
echo $tagger->getStylesheetTag('myscript.css', "text");
```

$this-&gt;assertEquals(

```

```

```
$tagger->cacheBustKey = 'mtime';
echo $tagger->getScriptTag('myscript.js', 123);
```

$this-&gt;assertEquals(

```

```

Extension Based Detection
-------------------------

[](#extension-based-detection)

```
echo $tagger->getTag('myscript.js');
echo $tagger->getTag('myscript.css');
```

```

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

4004d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/84c480751333fa4e6bb8de34b6254ed66d421c576bc3f5b50795df692917b31a?d=identicon)[r4j4h](/maintainers/r4j4h)

---

Top Contributors

[![r4j4h](https://avatars.githubusercontent.com/u/703007?v=4)](https://github.com/r4j4h "r4j4h (3 commits)")

---

Tags

linkhtmlstylesheetscript

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/r4j4h-jspackager-html-tagger/health.svg)

```
[![Health](https://phpackages.com/badges/r4j4h-jspackager-html-tagger/health.svg)](https://phpackages.com/packages/r4j4h-jspackager-html-tagger)
```

###  Alternatives

[scssphp/scssphp

scssphp is a compiler for SCSS written in PHP.

62827.7M220](/packages/scssphp-scssphp)[j0k3r/php-readability

Automatic article extraction from HTML

186808.8k6](/packages/j0k3r-php-readability)[caxy/php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML.

21320.9M15](/packages/caxy-php-htmldiff)[fivefilters/readability.php

A PHP port of Readability.js

311826.8k5](/packages/fivefilters-readabilityphp)[wikimedia/less.php

PHP port of the LESS processor

12327.4M77](/packages/wikimedia-lessphp)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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