# Collection

The collection class provides a nicer interface around arrays of arrays or objects, with advanced filters, sorting, navigation and more.

****

- Full class name: `Kirby\Toolkit\Collection`
- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Toolkit/Collection.php#L27>

****

### Collection

- [$collection->__call()](https://getkirby.com/docs/reference/objects/toolkit/collection/__call.md)
- [new Collection()](https://getkirby.com/docs/reference/objects/toolkit/collection/__construct.md)
- [$collection->__debugInfo()](https://getkirby.com/docs/reference/objects/toolkit/collection/__debug-info.md)
- [$collection->__get()](https://getkirby.com/docs/reference/objects/toolkit/collection/__get.md)
- [$collection->__isset()](https://getkirby.com/docs/reference/objects/toolkit/collection/__isset.md)
- [$collection->__set()](https://getkirby.com/docs/reference/objects/toolkit/collection/__set.md)
- [$collection->__toString()](https://getkirby.com/docs/reference/objects/toolkit/collection/__to-string.md)
- [$collection->__unset()](https://getkirby.com/docs/reference/objects/toolkit/collection/__unset.md)
- [$collection->append()](https://getkirby.com/docs/reference/objects/toolkit/collection/append.md)
- [$collection->chunk()](https://getkirby.com/docs/reference/objects/toolkit/collection/chunk.md)
- [$collection->clone()](https://getkirby.com/docs/reference/objects/toolkit/collection/clone.md)
- [$collection->count()](https://getkirby.com/docs/reference/objects/toolkit/collection/count.md)
- [$collection->current()](https://getkirby.com/docs/reference/objects/toolkit/collection/current.md)
- [$collection->data()](https://getkirby.com/docs/reference/objects/toolkit/collection/data.md)
- [$collection->empty()](https://getkirby.com/docs/reference/objects/toolkit/collection/empty.md)
- [$collection->extend()](https://getkirby.com/docs/reference/objects/toolkit/collection/extend.md)
- [$collection->filter()](https://getkirby.com/docs/reference/objects/toolkit/collection/filter.md)
- [$collection->filterBy()](https://getkirby.com/docs/reference/objects/toolkit/collection/filter-by.md)
- [$collection->find()](https://getkirby.com/docs/reference/objects/toolkit/collection/find.md)
- [$collection->findBy()](https://getkirby.com/docs/reference/objects/toolkit/collection/find-by.md)
- [$collection->findByKey()](https://getkirby.com/docs/reference/objects/toolkit/collection/find-by-key.md)
- [$collection->first()](https://getkirby.com/docs/reference/objects/toolkit/collection/first.md)
- [$collection->flip()](https://getkirby.com/docs/reference/objects/toolkit/collection/flip.md)
- [$collection->get()](https://getkirby.com/docs/reference/objects/toolkit/collection/get.md)
- [$collection->getAttribute()](https://getkirby.com/docs/reference/objects/toolkit/collection/get-attribute.md)
- [$collection->getIterator()](https://getkirby.com/docs/reference/objects/toolkit/collection/get-iterator.md)
- [$collection->group()](https://getkirby.com/docs/reference/objects/toolkit/collection/group.md)
- [$collection->groupBy()](https://getkirby.com/docs/reference/objects/toolkit/collection/group-by.md)
- [$collection->has()](https://getkirby.com/docs/reference/objects/toolkit/collection/has.md)
- [$collection->indexOf()](https://getkirby.com/docs/reference/objects/toolkit/collection/index-of.md)
- [$collection->intersection()](https://getkirby.com/docs/reference/objects/toolkit/collection/intersection.md)
- [$collection->intersects()](https://getkirby.com/docs/reference/objects/toolkit/collection/intersects.md)
- [$collection->isEmpty()](https://getkirby.com/docs/reference/objects/toolkit/collection/is-empty.md)
- [$collection->isEven()](https://getkirby.com/docs/reference/objects/toolkit/collection/is-even.md)
- [$collection->isNotEmpty()](https://getkirby.com/docs/reference/objects/toolkit/collection/is-not-empty.md)
- [$collection->isOdd()](https://getkirby.com/docs/reference/objects/toolkit/collection/is-odd.md)
- [$collection->join()](https://getkirby.com/docs/reference/objects/toolkit/collection/join.md)
- [$collection->key()](https://getkirby.com/docs/reference/objects/toolkit/collection/key.md)
- [$collection->keyOf()](https://getkirby.com/docs/reference/objects/toolkit/collection/key-of.md)
- [$collection->keys()](https://getkirby.com/docs/reference/objects/toolkit/collection/keys.md)
- [$collection->last()](https://getkirby.com/docs/reference/objects/toolkit/collection/last.md)
- [$collection->limit()](https://getkirby.com/docs/reference/objects/toolkit/collection/limit.md)
- [$collection->map()](https://getkirby.com/docs/reference/objects/toolkit/collection/map.md)
- [$collection->next()](https://getkirby.com/docs/reference/objects/toolkit/collection/next.md)
- [$collection->not()](https://getkirby.com/docs/reference/objects/toolkit/collection/not.md)
- [$collection->nth()](https://getkirby.com/docs/reference/objects/toolkit/collection/nth.md)
- [$collection->offset()](https://getkirby.com/docs/reference/objects/toolkit/collection/offset.md)
- [$collection->paginate()](https://getkirby.com/docs/reference/objects/toolkit/collection/paginate.md)
- [$collection->pagination()](https://getkirby.com/docs/reference/objects/toolkit/collection/pagination.md)
- [$collection->pluck()](https://getkirby.com/docs/reference/objects/toolkit/collection/pluck.md)
- [$collection->prepend()](https://getkirby.com/docs/reference/objects/toolkit/collection/prepend.md)
- [$collection->prev()](https://getkirby.com/docs/reference/objects/toolkit/collection/prev.md)
- [$collection->query()](https://getkirby.com/docs/reference/objects/toolkit/collection/query.md)
- [$collection->random()](https://getkirby.com/docs/reference/objects/toolkit/collection/random.md)
- [$collection->remove()](https://getkirby.com/docs/reference/objects/toolkit/collection/remove.md)
- [$collection->rewind()](https://getkirby.com/docs/reference/objects/toolkit/collection/rewind.md)
- [$collection->set()](https://getkirby.com/docs/reference/objects/toolkit/collection/set.md)
- [$collection->shuffle()](https://getkirby.com/docs/reference/objects/toolkit/collection/shuffle.md)
- [$collection->slice()](https://getkirby.com/docs/reference/objects/toolkit/collection/slice.md)
- [$collection->sort()](https://getkirby.com/docs/reference/objects/toolkit/collection/sort.md)
- [Collection::sortArgs()](https://getkirby.com/docs/reference/objects/toolkit/collection/sort-args.md)
- [$collection->sortBy()](https://getkirby.com/docs/reference/objects/toolkit/collection/sort-by.md)
- [$collection->toArray()](https://getkirby.com/docs/reference/objects/toolkit/collection/to-array.md)
- [$collection->toJson()](https://getkirby.com/docs/reference/objects/toolkit/collection/to-json.md)
- [$collection->toString()](https://getkirby.com/docs/reference/objects/toolkit/collection/to-string.md)
- [$collection->valid()](https://getkirby.com/docs/reference/objects/toolkit/collection/valid.md)
- [$collection->values()](https://getkirby.com/docs/reference/objects/toolkit/collection/values.md)
- [$collection->when()](https://getkirby.com/docs/reference/objects/toolkit/collection/when.md)
- [$collection->without()](https://getkirby.com/docs/reference/objects/toolkit/collection/without.md)