PHPackages                             pr3set-llc/silverstripe-collection - 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. pr3set-llc/silverstripe-collection

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

pr3set-llc/silverstripe-collection
==================================

Display a filterable collection of pages or dataobjects on a page.

5.0.0(7mo ago)011BSD-3-ClausePHPPHP ^8.1

Since Oct 9Pushed 7mo agoCompare

[ Source](https://github.com/PR3SET-LLC/silverstripe-collection)[ Packagist](https://packagist.org/packages/pr3set-llc/silverstripe-collection)[ RSS](/packages/pr3set-llc-silverstripe-collection/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (0)

Silverstripe Collection
=======================

[](#silverstripe-collection)

Display a filterable collection of pages or dataobjects on a page.

[![Build Status](https://camo.githubusercontent.com/7170a0b8de3e16e3f047710bd647016e568c0afb80ee7b029937f2697fc3da4d/68747470733a2f2f7472617669732d63692e6f72672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dynamic/silverstripe-collection)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c396323fa643a2054fcd390917755d1ea06aa091d0a49e0f1b4217a03a6367ae/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dynamic/silverstripe-collection/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/07fad568009d4a27d8c0a6c4435febf1d8b9021c4db1bd6989d36d4cddc979f5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dynamic/silverstripe-collection/?branch=master)[![Build Status](https://camo.githubusercontent.com/d7d08ea99f46b1f5f9d42dfccbc96175a2b8e6f443f803daf93c0f8490d6c6ae/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dynamic/silverstripe-collection/build-status/master)[![codecov](https://camo.githubusercontent.com/7468a83bd4a35aba9c97dad4dbaface4a14216094b2ddb32fafbf082d88fc0fb/68747470733a2f2f636f6465636f762e696f2f67682f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/dynamic/silverstripe-collection)

[![Latest Stable Version](https://camo.githubusercontent.com/fb4c9848737e2f7cab0a745d492752a6fc9d247b31fb29c192d848f3960ce6e8/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f762f737461626c65)](https://packagist.org/packages/dynamic/silverstripe-collection)[![Total Downloads](https://camo.githubusercontent.com/70f95115dcb9dd5e5aeb2d6a624e0906c44e4eb2bead0479388075a663b103b4/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f646f776e6c6f616473)](https://packagist.org/packages/dynamic/silverstripe-collection)[![Latest Unstable Version](https://camo.githubusercontent.com/a21b4bc41fc37544b2d1141ddf6ec69a18741760dac2db3e904747ec3acb2ce9/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f762f756e737461626c65)](https://packagist.org/packages/dynamic/silverstripe-collection)[![License](https://camo.githubusercontent.com/88ee355d403706c045d133240bc0fd513cd7bf50f2b68804b136c913ba5b51f1/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f6c6963656e7365)](https://packagist.org/packages/dynamic/silverstripe-collection)

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

[](#requirements)

- SilverStripe 4.x

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

[](#installation)

`composer require dynamic/silverstripe-collection`

Configuration
-------------

[](#configuration)

In your config.yml:

```
Your/Namespace/ExamplePageController:
  managed_object: ExampleObject
  page_size: 10
  extensions:
    - Dynamic\Collection\CollectionExtension

```

Managed Page/DataObject
-----------------------

[](#managed-pagedataobject)

Collection will create a search form based on the managed object's `$searchable_fields`.

```
private static $searchable_fields = [
  'Title' => [
    'title' => 'Name',
  ],
  'Category.ID' => [
    'title' => 'Category',
  ],
];

```

For advanced setups, you can also create `getCustomSearchContext()` on your managed object.

To include a sorting dropdown field, create a `getSortOptions()` method on your managed object:

```
public function getSortOptions()
{
  return array(
    'Created' => 'Date',
    'Title' => 'Name A-Z',
    'Title DESC' => 'Name Z-A',
  );
}

```

Templates
---------

[](#templates)

`$CollectionSearchForm` will display the search form.

You have mutliple options to loop through the results in your template:

- `$Collection` will display a list of all results
- `$PaginatedList` will paginate the results
- `$GroupedList.GroupedBy(CategoryTitle)` will display results grouped by the variable you pass

Documentation
-------------

[](#documentation)

See the [docs/en](docs/en/index.md) folder.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance65

Regular maintenance activity

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.6% 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 ~2 days

Total

3

Last Release

210d ago

Major Versions

5.x-dev → 6.x-dev2025-10-12

PHP version history (2 changes)5.0.0PHP ^8.1

6.x-devPHP ^8.3

### Community

Maintainers

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

---

Top Contributors

[![jsirish](https://avatars.githubusercontent.com/u/1163643?v=4)](https://github.com/jsirish "jsirish (24 commits)")[![mak001](https://avatars.githubusercontent.com/u/1750550?v=4)](https://github.com/mak001 "mak001 (5 commits)")[![juangadiel](https://avatars.githubusercontent.com/u/706997?v=4)](https://github.com/juangadiel "juangadiel (2 commits)")[![juangadiel-pr3set](https://avatars.githubusercontent.com/u/231773882?v=4)](https://github.com/juangadiel-pr3set "juangadiel-pr3set (2 commits)")[![muskie9](https://avatars.githubusercontent.com/u/870751?v=4)](https://github.com/muskie9 "muskie9 (2 commits)")

---

Tags

silverstripe

### Embed Badge

![Health badge](/badges/pr3set-llc-silverstripe-collection/health.svg)

```
[![Health](https://phpackages.com/badges/pr3set-llc-silverstripe-collection/health.svg)](https://phpackages.com/packages/pr3set-llc-silverstripe-collection)
```

PHPackages © 2026

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