PHPackages                             daun/statamic-widget-collection-count - 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. [Admin Panels](/categories/admin)
4. /
5. daun/statamic-widget-collection-count

ActiveStatamic-addon[Admin Panels](/categories/admin)

daun/statamic-widget-collection-count
=====================================

Display the number of entries per collection or taxonomy in your Statamic control panel

v2.0.0(3mo ago)53.7kMITPHP

Since Mar 7Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/daun/statamic-widget-collection-count)[ Packagist](https://packagist.org/packages/daun/statamic-widget-collection-count)[ RSS](/packages/daun-statamic-widget-collection-count/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (15)Used By (0)

Statamic Widget: Collection Count
=================================

[](#statamic-widget-collection-count)

Control panel widget for [Statamic](https://statamic.com/) that displays the count of collection entries or taxonomy terms.

[![Collection Count Widget Screenshot](./art/collection-count-widget.png)](./art/collection-count-widget.png)

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

[](#installation)

From your project root, run:

```
composer require daun/statamic-widget-collection-count
```

Alternatively, you can install the addon via the control panel.

Usage
-----

[](#usage)

Add the widget to your control panel dashboard by adding it to the `widgets` array in the `config/statamic/cp.php` config file. Pass in the names of collections to show.

```
return [
    'widgets' => [
        [
            'type' => 'collection_count',
            'collections' => ['articles', 'categories', 'authors'],
        ]
    ]
];
```

Options
-------

[](#options)

### Display as individual cards

[](#display-as-individual-cards)

The widget displays counts in text sections with dividers between them. This works well if the widget is used first in the dashboard. If you prefer a design that integrates more into the card layout of other widgets, you can enable the `cards` config. This will render each count in a separate card.

```
return [
    'widgets' => [
        [
            'type' => 'collection_count',
            'collections' => ['articles', 'categories', 'authors'],
+           'cards' => true,
        ]
    ]
];
```

### Ignore draft entries

[](#ignore-draft-entries)

By default, all entries are counted, including drafts. Set the `ignore_unpublished` config value to only count published entries.

```
return [
    'widgets' => [
        [
            'type' => 'collection_count',
            'collections' => ['articles', 'categories', 'authors'],
+           'ignore_unpublished' => true,
        ]
    ]
];
```

### Apply custom query scopes

[](#apply-custom-query-scopes)

Pass in the `query_scope` param to apply [custom scopes](https://statamic.dev/extending/query-scopes-and-filters) before counting.

```
return [
    'widgets' => [
        [
            'type' => 'collection_count',
            'collections' => ['articles', 'categories', 'authors'],
+           'query_scope' => 'unarchived',
        ]
    ]
];
```

### Usage with taxonomies

[](#usage-with-taxonomies)

The widget can count taxonomy terms as well. Just use the taxonomy name instead.

```
return [
    'widgets' => [
        [
            'type' => 'collection_count',
            'collections' => ['tags'],
        ]
    ]
];
```

Requirements
------------

[](#requirements)

Statamic 6 or higher. For Statamic 5 support, please use version 1.x of this addon.

License
-------

[](#license)

[MIT](https://opensource.org/licenses/MIT)

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance82

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Recently: every ~108 days

Total

10

Last Release

95d ago

Major Versions

v1.3.3 → v2.0.02026-02-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/31ac2b3787ded290b6bac87b937abf4f267483e4da64731bfb256a942bb669ca?d=identicon)[daun](/maintainers/daun)

---

Top Contributors

[![daun](https://avatars.githubusercontent.com/u/22225348?v=4)](https://github.com/daun "daun (75 commits)")

---

Tags

control-panelcounterstatamicstatamic-addonwidget

### Embed Badge

![Health badge](/badges/daun-statamic-widget-collection-count/health.svg)

```
[![Health](https://phpackages.com/badges/daun-statamic-widget-collection-count/health.svg)](https://phpackages.com/packages/daun-statamic-widget-collection-count)
```

###  Alternatives

[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)[magefan/module-admin-user-guide

Admin panel user guides.

132.5M1](/packages/magefan-module-admin-user-guide)

PHPackages © 2026

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