PHPackages                             carlcs/craft-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. carlcs/craft-glob

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

carlcs/craft-glob
=================

Glob plugin for Craft CMS

v1.0.1(10y ago)018PHPPHP &gt;=5.3.0

Since Feb 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/carlcs/craft-glob)[ Packagist](https://packagist.org/packages/carlcs/craft-glob)[ RSS](/packages/carlcs-craft-glob/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (1)Versions (2)Used By (0)

Glob plugin for Craft CMS
=========================

[](#glob-plugin-for-craft-cms)

Craft plugin that adds a Twig function to find pathnames in your templates folder matching a pattern.

The plugin uses the PHP [`glob`](http://php.net/manual/en/function.glob.php) function internally.

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

[](#installation)

To install the plugin, copy the glob/ folder into craft/plugins/. Then go to Settings → Plugins and click the "Install" button next to "Glob".

Twig function
-------------

[](#twig-function)

### glob( path, pattern )

[](#glob-path-pattern-)

Find pathnames in your templates folder matching a pattern.

```
{% set plugins = [
    'Asset Metadata',
    'Number Convert',
] %}

{% for plugin in plugins %}
    {% set dirPath = 'tests/' ~ plugin|camel|lower ~ '/' %}

    {% for path in glob(dirPath) %}
        {{ path }}
    {% endfor %}
{% endfor %}
```

#### Parameters

[](#parameters)

`path` (optional) : The sub-path in craft/templates/ you want to search in.

`pattern` (optional) : The pattern as described in the PHP [`glob`](http://php.net/manual/en/function.glob.php) documentation (Default value is `'*.{html,twig}'`).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3801d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7516543?v=4)[carlcs](/maintainers/carlcs)[@carlcs](https://github.com/carlcs)

---

Top Contributors

[![carlcs](https://avatars.githubusercontent.com/u/7516543?v=4)](https://github.com/carlcs "carlcs (7 commits)")

### Embed Badge

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

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

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[mautic/core

Mautic Open Source Distribution

9.8k2.6k9](/packages/mautic-core)[mediawiki/maps

Adds various mapping features to MediaWiki

78149.7k3](/packages/mediawiki-maps)[rainlab/blog-plugin

Blog plugin for October CMS

17158.6k](/packages/rainlab-blog-plugin)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19246.3k2](/packages/civicrm-civicrm-drupal-8)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3355.8k](/packages/starcitizentools-citizen-skin)

PHPackages © 2026

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