PHPackages                             pschmitt/phile-tags - 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. pschmitt/phile-tags

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

pschmitt/phile-tags
===================

Tags for Phile CMS

482[1 issues](https://github.com/pschmitt/phileTags/issues)[2 PRs](https://github.com/pschmitt/phileTags/pulls)PHP

Since Jan 10Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/pschmitt/phileTags)[ Packagist](https://packagist.org/packages/pschmitt/phile-tags)[ RSS](/packages/pschmitt-phile-tags/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

PhileTags
=========

[](#philetags)

Plugin adds page tagging functionality to [Phile](http://philecms.github.io/Phile). Based on [Pico Tags by Szymon Kaliski](https://github.com/szymonkaliski/Phile-Tags-Plugin), but only uses the provided hooks and leaves the Phile core alone.

It gives you access to:

- If on a `/tag/` URL, the `current_tag` variable
- For every page, `page.meta.tags_array` --- array of tags for the `page`

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

[](#installation)

- Clone this repo to the `plugins/pschmitt/tags`:

```
mkdir -p ~http/plugins/pschmitt
git clone https://github.com/pschmitt/phileTags.git ~http/plugins/pschmitt/tags
# You may consider using a submodule for this
git submodule add http://github.com/pschmitt/phileTags.git /srv/http/plugins/pschmitt/tags
```

---

- **Important:** Make a new template called `tag` (i.e. `phile/themes//tag.html`) which will be used when requesting a `tag/` URI.

---

- Activate it in `config.php`:

```
$config['plugins'] = array(
    // [...]
    'pschmitt\\tags' => array('active' => true),
);
```

Usage
-----

[](#usage)

Add a new `Tags` attribute to the page meta:

```
/*
Title: My First Blog Post
Description: It's a blog post about javascript and php
Author: Dan Reeves
Robots: index,follow
Date: 2014/04/04
Tags: js, javascript, php
*/

```

Configuration
-------------

[](#configuration)

In `config.php` you can customize:

- `$config['tag_template']` - which template should be used when on a `tag/` page. This setting defaults to `'tag'`.
- `$config['tag_separator']` - the separator used for splitting the tag meta(regexps, like `'\s*'` are allowed). Its default value is `','`.

Templates
---------

[](#templates)

You can now access both the current page `meta.tags_array` and each `page.meta.tags_array` in the `pages` array:

`tag.html` template may look like:

```
>

	{{ meta.title }}

	Posts tagged #{{ current_tag }}:

	{% for page in pages %}
	{% if page.meta.tags_array and current_tag in page.meta.tags_array %}

			{{ page.meta.title }}
			{{ page.content }}

			Tags:
			{% for tag in page.meta.tags_array %}
				#{{ tag }}
			{% endfor %}

	{% endif %}
	{% endfor %}

```

License
-------

[](#license)

MIT

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance45

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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/74212c156dd1a0b9ec40da52094bcca6030753a21c62a89b2b5d294db2fcf1cb?d=identicon)[pschmitt](/maintainers/pschmitt)

---

Top Contributors

[![pschmitt](https://avatars.githubusercontent.com/u/37886?v=4)](https://github.com/pschmitt "pschmitt (13 commits)")[![jacmoe](https://avatars.githubusercontent.com/u/85424?v=4)](https://github.com/jacmoe "jacmoe (1 commits)")

### Embed Badge

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

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

###  Alternatives

[activecampaign/module-integration

ActiveCampaign extension for Magento 2.3 and 2.4

1163.7k](/packages/activecampaign-module-integration)

PHPackages © 2026

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