PHPackages                             michaeljoelphillips/ctags-php - 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. michaeljoelphillips/ctags-php

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

michaeljoelphillips/ctags-php
=============================

Reads tag files generated by universal ctags

0.0.3(5y ago)039MITPHPPHP ^7.4

Since Oct 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/michaeljoelphillips/ctags-php)[ Packagist](https://packagist.org/packages/michaeljoelphillips/ctags-php)[ RSS](/packages/michaeljoelphillips-ctags-php/feed)WikiDiscussions master Synced 5d ago

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

ctags-php
=========

[](#ctags-php)

[![Build Status](https://camo.githubusercontent.com/100f894137e4a29a9a28dfd0233e03b1679e2180fd2f11151a83e7fdea2340f6/68747470733a2f2f7472617669732d63692e636f6d2f6d69636861656c6a6f656c7068696c6c6970732f63746167732d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/michaeljoelphillips/ctags-php)[![PHPStan Enabled](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org)

This library provides support for reading tag files generated by various versions of [Ctags](https://en.wikipedia.org/wiki/Ctags), including [Universal](https://ctags.io/) and [Exuberant](http://ctags.sourceforge.net/) Ctags.

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

[](#installation)

```
composer require michaeljoelphillips/ctags-php
```

Usage
=====

[](#usage)

You can filter tags using a predicate function, match tags similar to [`readtags`](https://docs.ctags.io/en/latest/man/readtags.1.html), or list all tags. The result for each is a `Generator`containing `CTags\Tag` objects:

```
use CTags\Reader;
use CTags\Tag;
use Generator;

$reader = Reader::fromFile('tags', true);

$reader->listAll();
$reader->match('MyClass');
$reader->partialMatch('My');

$reader->filter(static function (Tag $tag) {
    return $tag->name === 'MyClass' && $tag->fields['kind'] === 'c';
});
```

If reading the Universal Ctags extension fields is not necessary, you can exclude them for better performance:

```
use CTags\Reader;

$reader = Reader::fromFile('tags', false);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Total

3

Last Release

1997d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a750ce2a2e3a077b816246f7ad5b9da1bf3211c243af82ff0b4dededa19adbf8?d=identicon)[michaeljoelphillips](/maintainers/michaeljoelphillips)

---

Top Contributors

[![michaeljoelphillips](https://avatars.githubusercontent.com/u/530807?v=4)](https://github.com/michaeljoelphillips "michaeljoelphillips (15 commits)")

---

Tags

ctagsphpuniversal-ctagsctagsuniversal

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/michaeljoelphillips-ctags-php/health.svg)

```
[![Health](https://phpackages.com/badges/michaeljoelphillips-ctags-php/health.svg)](https://phpackages.com/packages/michaeljoelphillips-ctags-php)
```

###  Alternatives

[ashleydawson/simple-pagination

Simple, lightweight and universal service that implements pagination on collections of things

18161.2k2](/packages/ashleydawson-simple-pagination)

PHPackages © 2026

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