PHPackages                             hangar115/hashtagger - 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. hangar115/hashtagger

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

hangar115/hashtagger
====================

Auto-hashtag an article title based on the content, fork of ampersa/hashtagger

0.4(9y ago)018MITPHPPHP &gt;=7.0

Since Mar 19Pushed 3y agoCompare

[ Source](https://github.com/hangar115/hashtagger)[ Packagist](https://packagist.org/packages/hangar115/hashtagger)[ RSS](/packages/hangar115-hashtagger/feed)WikiDiscussions master Synced today

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

Auto-Hashtagger for article titles
==================================

[](#auto-hashtagger-for-article-titles)

Auto-hashtag an article title based on content

Inspired by

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

[](#installation)

Installation is via composer:

```
composer require ampersa/hashtagger

```

Usage
-----

[](#usage)

### Basic usage

[](#basic-usage)

```
$title = 'An article about PHP and hashtags';
$content = 'PHP is a server-side scripting language designed primarily for web development but also used as a general-purpose programming language. Originally created by Rasmus Lerdorf in 1994,[4] the PHP reference implementation is now produced by The PHP Development Team.[5] PHP originally stood for Personal Home Page,[4] but it now stands for the recursive acronym PHP: Hypertext Preprocessor.[6]

A hashtag is a type of label or metadata tag used on social network and microblogging services which makes it easier for users to find messages with a specific theme or content. Users create and use hashtags by placing the hash character # (also known as the number sign or pound sign) in front of a word or unspaced phrase, either in the main text of a message or at the end. Searching for that hashtag will yield each message that has been tagged with it. A hashtag archive is consequently collected into a single stream under the same hashtag.[1] For example, on the photo-sharing service Instagram, the hashtag #bluesky allows users to find all the posts that have been tagged using that hashtag.';

$tagger = new Hashtagger($title, $content);
$tagged = $tagger->tag();

// Result: An article about #PHP and #hashtags
```

### Options

[](#options)

Tweak the ratio of hashtags for the title using the sole argument to tag():

```
$tagger = new Hashtagger($title, $content);
$tagged = $tagger->tag(0.7);

// Result: An #article about #PHP and #hashtags
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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 ~0 days

Total

5

Last Release

3391d ago

PHP version history (2 changes)0.1PHP &gt;=5.4

0.2PHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

[![ampersa](https://avatars.githubusercontent.com/u/25405272?v=4)](https://github.com/ampersa "ampersa (7 commits)")[![LZL0](https://avatars.githubusercontent.com/u/12474488?v=4)](https://github.com/LZL0 "LZL0 (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hangar115-hashtagger/health.svg)

```
[![Health](https://phpackages.com/badges/hangar115-hashtagger/health.svg)](https://phpackages.com/packages/hangar115-hashtagger)
```

###  Alternatives

[keyword-extractor/keyword-extractor

A package to extract keywords from text

118.8k](/packages/keyword-extractor-keyword-extractor)

PHPackages © 2026

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