PHPackages                             waughj/html-link - 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. waughj/html-link

ActiveProject[Templating &amp; Views](/categories/templating)

waughj/html-link
================

Simple class for encapsulating link info and autogenerating the HTML for it

v1.2.8(6y ago)02029AGPL-3.0-or-laterPHPPHP &gt;=7.0

Since Nov 5Pushed 6y agoCompare

[ Source](https://github.com/waughjai/html-link)[ Packagist](https://packagist.org/packages/waughj/html-link)[ RSS](/packages/waughj-html-link/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (10)Dependencies (3)Versions (13)Used By (9)

HTML Link
=========

[](#html-link)

Simple class for encapsulating link info and autogenerating the HTML for it.

The 1st 2 mandatory arguments to pass into the constructor are the URL &amp; the HTML value that will represent the link on the page ( the part that goes 'tween the opening &amp; closing a tags ). This can be any printable object, including not only the usual string for text, but also other HTML content generators.

3rd is an optional hash map o' attributes. In addition to all the valid HTML5 attributes an a tag can have, which will automatically be added if given, adding an external attribute &amp; setting it to true will automatically generate the HTML to securely make it open in a new tab, &amp; adding an anchor attribute will automatically add an anchor/bookmark link to the URL ( the part after the # in a URL ).

4th is an optional hash map o' URL GET parameters that will be automatically added to the URL.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

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 ~19 days

Recently: every ~0 days

Total

12

Last Release

2537d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11161078?v=4)[waughj](/maintainers/waughj)[@waughj](https://github.com/waughj)

---

Tags

linkhtmlhyperlink

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/waughj-html-link/health.svg)

```
[![Health](https://phpackages.com/badges/waughj-html-link/health.svg)](https://phpackages.com/packages/waughj-html-link)
```

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.5k34.7M186](/packages/phpoffice-phpword)[latte/latte

☕ Latte: the intuitive and fast template engine for those who want the most secure PHP sites. Introduces context-sensitive escaping.

1.3k15.7M683](/packages/latte-latte)[twig/string-extra

A Twig extension for Symfony String

21946.0M133](/packages/twig-string-extra)[exercise/htmlpurifier-bundle

HTMLPurifier integration for your Symfony project

27911.3M16](/packages/exercise-htmlpurifier-bundle)[twig/markdown-extra

A Twig extension for Markdown

12114.3M83](/packages/twig-markdown-extra)[laminas/laminas-view

Fast and type safe HTML templating library with a flexible plugin system supporting multistep template composition

7526.3M230](/packages/laminas-laminas-view)

PHPackages © 2026

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