awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
doctrine avatar

doctrine/collections

0
View on GitHub↗
5,979 stars·183 forks·PHP·MIT·14 viewswww.doctrine-project.org/projects/collections.html↗

Collections

Doctrine Collections is a PHP library that provides object-oriented abstractions for managing and manipulating groups of objects with array-like functionality. It wraps native PHP arrays in an object-oriented interface, enabling cleaner data manipulation through methods for filtering, mapping, and iteration.

The library supports callback-driven transformation, applying a callback to every element and returning a new collection with the transformed values. It also enables criteria expression querying, allowing selection of matching elements by applying a criteria object with comparison expressions instead of manual loops. Internal and external iteration is supported, walking through elements using an internal iterator or external iterators via foreach or getIterator.

The library covers collection filtering, transformation, iteration, and querying with expressions, providing a set of abstractions and implementations for managing groups of objects.

Features

  • Collection Element Transformations - Transforms every element in a collection by applying a callback and returns the new values.
  • Collection Filtering - Filters collections by applying a test to each element and keeping only those that pass.
  • Collection Iteration - Walks through elements using internal or external iterators via foreach or getIterator.
  • Collection Manipulators - Works with arrays and lists through an object-oriented interface for cleaner data manipulation.
  • Criteria-Based Queries - Enables querying collections using criteria objects with comparison expressions for element selection.
  • Array Wrappers - Wraps native PHP arrays in an object-oriented interface for cleaner data manipulation.
  • Array-Backed Collections - Provides an object-oriented interface wrapping native PHP arrays for cleaner data manipulation.
  • PHP Collection Abstractions - Provides object-oriented abstractions for managing PHP arrays with filtering, mapping, and iteration methods.
  • Object Collection Management - Provides abstractions and implementations for managing groups of objects with array-like functionality.
  • Collection Transformations - Ships a callback-driven map operation that transforms every element in a collection.
  • List Iteration - Supports both internal and external iteration over collections using foreach and getIterator.

Star history

Star history chart for doctrine/collectionsStar history chart for doctrine/collections

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does doctrine/collections do?

Doctrine Collections is a PHP library that provides object-oriented abstractions for managing and manipulating groups of objects with array-like functionality. It wraps native PHP arrays in an object-oriented interface, enabling cleaner data manipulation through methods for filtering, mapping, and iteration.

What are the main features of doctrine/collections?

The main features of doctrine/collections are: Collection Element Transformations, Collection Filtering, Collection Iteration, Collection Manipulators, Criteria-Based Queries, Array Wrappers, Array-Backed Collections, PHP Collection Abstractions.

What are some open-source alternatives to doctrine/collections?

Open-source alternatives to doctrine/collections include: ankurp/dollar — Dollar is a functional programming library for Swift that provides a comprehensive toolkit for collection… nette/utils — This project is a general-purpose PHP utility library offering a collection of helper classes and functions for string… doctrine/common — Doctrine Common is a set of shared libraries that provide foundational capabilities for parsing PHP docblock… ecrmnn/collect.js — collect.js is a dependency-free JavaScript library that provides a fluent, chainable interface for manipulating arrays… louthy/language-ext — language-ext is a functional programming framework for C# that provides a suite of immutable data structures and… adambard/learnxinyminutes-docs — This project is a collection of programming language references and syntax cheat sheets designed for rapid developer…

Open-source alternatives to Collections

Similar open-source projects, ranked by how many features they share with Collections.
  • ankurp/dollarankurp avatar

    ankurp/Dollar

    4,240View on GitHub↗

    Dollar is a functional programming library for Swift that provides a comprehensive toolkit for collection manipulation, string processing, mathematical calculations, and date and time management. It serves as a utility suite for filtering, aggregating, and restructuring arrays and dictionaries. The project implements functional programming patterns such as currying, memoization, and function composition. It also features a chainable wrapper interface that allows multiple data transformations to be applied sequentially before extracting a final result. The library covers a wide range of capab

    Swift
    View on GitHub↗4,240
  • nette/utilsnette avatar

    nette/utils

    2,142View on GitHub↗

    This project is a general-purpose PHP utility library offering a collection of helper classes and functions for string manipulation, array and collection processing, data validation, filesystem operations, and image processing. It provides foundational toolkits designed to handle common development tasks through standardized APIs. The library is distinguished by specialized subsystems for programmatic HTML generation and secure element construction, runtime code reflection, and object-oriented utilities such as virtual property management and event callback triggers. It also includes cryptogr

    PHParray-manipulationscomponentjson
    View on GitHub↗2,142
  • doctrine/commondoctrine avatar

    doctrine/common

    5,807View on GitHub↗

    Doctrine Common is a set of shared libraries that provide foundational capabilities for parsing PHP docblock annotations, managing event-driven communication, and handling typed object collections. At its core, it includes a docblock annotation parser that reads structured metadata from PHP docblock comments, enabling configuration for object-relational mapping and validation rules. It also offers a typed collection abstraction with lazy-loading support, allowing efficient management of object groups through array-like operations. The library extends these capabilities with an event managemen

    PHP
    View on GitHub↗5,807
  • ecrmnn/collect.jsecrmnn avatar

    ecrmnn/collect.js

    6,571View on GitHub↗

    collect.js is a dependency-free JavaScript library that provides a fluent, chainable interface for manipulating arrays and objects. It mirrors the Laravel Collection API, offering a consistent set of methods for data transformation across JavaScript and Laravel backend environments. The library stores collection data as plain arrays internally and supports fluent method chaining, where each method returns a new collection instance. The library distinguishes itself by closely replicating the Laravel Collection API in JavaScript, mapping each PHP method to an equivalent JavaScript implementatio

    JavaScriptcollectionlaravellaravel-collections
    View on GitHub↗6,571
  • See all 30 alternatives to Collections→