PHPackages                             jorissteyn/phptags - 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. jorissteyn/phptags

ActiveProject

jorissteyn/phptags
==================

A PHP source code tagging system

0.0.4(11y ago)9602[1 PRs](https://github.com/jorissteyn/phptags/pulls)AGPLv3PHPPHP &gt;=5.3

Since Apr 24Pushed 10y ago4 watchersCompare

[ Source](https://github.com/jorissteyn/phptags)[ Packagist](https://packagist.org/packages/jorissteyn/phptags)[ Docs](https://github.com/jorissteyn/phptags)[ RSS](/packages/jorissteyn-phptags/feed)WikiDiscussions master Synced 1mo ago

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

```
  __  ___   ____  _   _ ____   _____  _    ____ ____
 / / |__ \ |  _ \| | | |  _ \ |_   _|/ \  / ___/ ___|
/ /    / / | |_) | |_| | |_) |  | | / _ \| |  _\___ \
\ \   |_|  |  __/|  _  |  __/   | |/ ___ \ |_| |___) |
 \_\  (_)  |_|   |_| |_|_|      |_/_/   \_\____|____/
                     A PHP source code tagging system.

```

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

[](#installation)

1. Clone this repository
2. Install composer:
3. In the repository root, run `composer install`
4. That's it, you probably want to configure the bin/phptags executable in your editor.

Requirements
============

[](#requirements)

Should run on PHP 5.3 and newer.

Usage: index
============

[](#usage-index)

Use `phptags index` to create a new tags database in the current working directory and start indexing source files recursively.

```
$ phptags index [--help]

```

Or specify the target directory.

```
$ phptags index --root /path/to/source

```

By default, the database file name is `PHPTAGS.sqlite`, but that can be changed with the `--database` option. The value may be an absolute path, in or outside of the project directory.

```
$ phptags index --database TAGS

```

Source files are recognized by customizable regular expression on the file name. By default all files with the `.php` file extension are matched.

```
$ phptags index --pattern `\.(php|inc|module|profile|install)$`

```

Usage: query
============

[](#usage-query)

The command `phptags query` can be used to find tags in the database. It accepts the `--root` and `--database` options, and has several additional options to specify the query.

It searches for definitions only, except when the --reference options is given.

```
$ phptags query --help
$ phptags query ^FindThis$
$ phptags query findthis --type function
$ phptags query findthis --reference
$ phptags query findthis --format ctags

```

License
=======

[](#license)

```
Copyright 2014 Joris Steyn

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see .

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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

Every ~4 days

Total

4

Last Release

4029d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/127fef132952864b6000cf0958d9fae953d5327b1bce32ee01447b0e13a99da0?d=identicon)[jorissteyn](/maintainers/jorissteyn)

---

Top Contributors

[![jorissteyn](https://avatars.githubusercontent.com/u/448056?v=4)](https://github.com/jorissteyn "jorissteyn (10 commits)")

---

Tags

phpctagsglobalgtagsemacs

### Embed Badge

![Health badge](/badges/jorissteyn-phptags/health.svg)

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

###  Alternatives

[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.4k855.0k18](/packages/danog-madelineproto)[pestphp/pest-plugin-drift

The Pest Drift Plugin

734.0M74](/packages/pestphp-pest-plugin-drift)[corveda/php-sandbox

A PHP library that can be used to run PHP code in a sandboxed environment

23483.5k2](/packages/corveda-php-sandbox)[pmaslak/php-obfuscator

PHP obfuscator

222.6k](/packages/pmaslak-php-obfuscator)

PHPackages © 2026

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