PHPackages                             phile/twitter - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. phile/twitter

ActivePhile-plugin[Parsing &amp; Serialization](/categories/parsing)

phile/twitter
=============

Parse content and wrap Twitter mentions and hashtags

25PHP

Since Oct 9Pushed 11y ago2 watchersCompare

[ Source](https://github.com/PhileCMS/phileTwitter)[ Packagist](https://packagist.org/packages/phile/twitter)[ RSS](/packages/phile-twitter/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

phileTwitter
============

[](#philetwitter)

Parse content and wrap Twitter mentions and hashtags

### Features

[](#features)

- wrap `@` mentions
- wrap `#` tags
- control output (title, target, class name)

### 1.1 Installation (composer)

[](#11-installation-composer)

```
php composer.phar require phile/twitter:*

```

### 1.2 Installation (Download)

[](#12-installation-download)

- Install [Phile](https://github.com/PhileCMS/Phile)
- Clone this repo into `plugins/phile/twitter`

### 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\\twitter'] = array('active' => true);
``

### Markdown Usage

All you have to do is use the `@` and `#` signs like you normally would in a tweet.

#### Basic Examples:

Put the code in there. Watch the HTML spew out.

```html
You can now mention twitter people like @james2doyle or even use hash tags like #philecms.

```

Output:

```
You can now mention twitter people like @james2doyle or even use hash tags like #philecms.
```

#### Config

[](#config)

Here are the settings. See the above output for where everything goes.

```
'class' => 'twitter-link', // class to apply to the a tag, false is off
'target' => '_blank', // target for the a tag, false is off
'title' => true, // show a title on the a tag, false is off

```

### Why Use?

[](#why-use)

Clients are crazy. You want to make sure the HTML output is good and not a huge mess. It is a pretty good selling point for some people too. Doing things `automagically` always is.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### 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 (6 commits)")[![NeoBlack](https://avatars.githubusercontent.com/u/1128085?v=4)](https://github.com/NeoBlack "NeoBlack (2 commits)")[![Sithdown](https://avatars.githubusercontent.com/u/430612?v=4)](https://github.com/Sithdown "Sithdown (2 commits)")

---

Tags

philecms-plugin

### Embed Badge

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

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

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[meyfa/php-svg

Read, edit, write, and render SVG files with PHP

54613.9M42](/packages/meyfa-php-svg)

PHPackages © 2026

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