PHPackages                             aklump/glob - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. aklump/glob

ActiveLibrary[File &amp; Storage](/categories/file-storage)

aklump/glob
===========

File and directory path globbing.

0.0.9(1y ago)01951BSD-3-ClausePHPPHP &gt;=7.3

Since Feb 16Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (6)Versions (8)Used By (1)

Glob
====

[](#glob)

A replacement for  that provides support for `**`.

```
$matched_paths = \AKlump\Glob\Glob::glob('/foo/**/*.txt');
```

In some cases you may be able to achieve better performance by reusing a single instance as shown below. The reason is that each instance generates a file cache when it's first called. The downside is that you MUST manage the cache yourself, that is, if the file system changes, you must use a new instance. And that coordination is up to you. **By using the static `::glob` method, you do not need to manage caching, as each call produces a new instance.**

```
$glob = new \AKlump\Glob\Glob();
$matched_paths = $glob('/foo/**/*.txt');
// This second call will rely on the internal cache of $glob and is theoretically faster.
$matched_paths = $glob('/foo/**/*.md');
```

Install with Composer
---------------------

[](#install-with-composer)

1. Require this package:

    ```
    composer require aklump/glob:^0.0

    ```

Why a New Package
-----------------

[](#why-a-new-package)

This package was written to address unexpected results from the other available glob-replacement composer packages available at the time.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

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

Recently: every ~52 days

Total

7

Last Release

614d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79476f3b82f9c766433c7eb401cbcfc636cd5d5ccf2b2e6b50ea81d1de6c2730?d=identicon)[aklump](/maintainers/aklump)

---

Top Contributors

[![aklump](https://avatars.githubusercontent.com/u/425737?v=4)](https://github.com/aklump "aklump (32 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aklump-glob/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k511.3M2.2k](/packages/aws-aws-sdk-php)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[gnugat/redaktilo

Find, insert, replace and remove lines with an Editor-like object

79225.7k6](/packages/gnugat-redaktilo)[terminal42/contao-fineuploader

FineUploader bundle for Contao Open Source CMS

2052.9k4](/packages/terminal42-contao-fineuploader)[zenstruck/backup

Library to create and archive backups

2511.8k2](/packages/zenstruck-backup)

PHPackages © 2026

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