PHPackages                             wjdhollow/antglob - 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. wjdhollow/antglob

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

wjdhollow/antglob
=================

PHP Ant Glob

0.0.5(10y ago)01.3k[1 issues](https://github.com/wjdhollow/antglob/issues)MITPHPPHP &gt;=5.4

Since Jul 13Pushed 10y ago1 watchersCompare

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

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

antglob
=======

[](#antglob)

Ant style globs for PHP
-----------------------

[](#ant-style-globs-for-php)

The AntGlob utility is a set of the syntax specified by . Ant patterns are used for matching files and directories, similar to glob patterns used in DOS or UNIX.

'\*' matches zero or more characters, not including directory separators.

'?' matches a single character.

Patterns are considered relative paths, relative to the working directory. Only files found below the working directory are considered. The behavior of absolute patterns is loosely defined, so its usage is not recommended.

Matching is done per directory, meaning that the first pattern is matched, and the second and so forth. The whole pattern must be satisfied before it is considered a match. A common alternative to using glob style pattern matching is to apply a regex. An equivalent regex would be considered 'lazy' as opposed to 'greedy'.

'\*\*' can be used to match multiple directory levels. This can be used to match a whole directory tree, or a file anywhere in the directory tree.

As a shorthand, any pattern ending in '/' has a '\*\*' appended to it. Example, 'mydir' matches a directory named 'mydir', while 'mydir/' matches all files in the 'mydir' directory tree.

To install: `composer require wjdhollow/antglob`

Command line utility: `bin/antglob  `

API:

`$glob = new AntGlob($pattern);`

`$matches = $glob->isMatch($name);`

`$pathnames = $glob->inDirectory($directory);`

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

3962d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b593f18255f720c0bc245229b3702fbe1ab012d42d5d08f82585d43e4165ef0?d=identicon)[wjdhollow](/maintainers/wjdhollow)

---

Top Contributors

[![wjdhollow](https://avatars.githubusercontent.com/u/774752?v=4)](https://github.com/wjdhollow "wjdhollow (19 commits)")

---

Tags

phpglobwjdhollow

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wjdhollow-antglob/health.svg)

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

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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